Your message dated Wed, 04 Jan 2023 09:32:37 +0100
with message-id <3521795.TdZ9opy8JR@tuxin>
and subject line Re: onionshare-nautilus.py is not compatible with Python3
has caused the Debian Bug report #1011748,
regarding onionshare-nautilus.py is not compatible with Python3
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1011748: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1011748
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: onionshare
Version: 2.2-3
Severity: important
Tags: patch upstream
X-Debbugs-Cc: [email protected]

Dear Maintainer,

   * What led up to the situation?

In Tails 5.0, onionshare 2.2-3 is installed, Python2 is not.
>From Nautilus, I want to right-click a file and share it via OnionShare.

   * What was the outcome of this action?

Nothing happens. See 
https://gitlab.tails.boum.org/tails/tails/-/issues/18990 for details.

The reason is that onionshare is using urllib.url2pathname. This has 
been renamed to urllib.request.url2pathname in python3.
Here is a fix that keeps compatibility with python2: 
https://github.com/boyska/onionshare/commit/fd6269a7f3e54389543fd3559c8e4d39dfe02b09
I'm also attaching a patch that *drops* compatibility with python2. 
Choose the one you like the most :)

--- /usr/share/nautilus-python/extensions/onionshare-nautilus.py	2019-10-13 18:35:40.000000000 +0000
+++ /usr/share/nautilus-python/extensions/onionshare-nautilus.py	2022-05-26 08:35:15.744000000 +0000
@@ -3,7 +3,7 @@
 import json
 import locale
 import subprocess
-import urllib
+import urllib.request
 import gi
 
 gi.require_version("Nautilus", "3.0")
@@ -67,7 +67,7 @@
     def url2path(self, url):
         file_uri = url.get_activation_uri()
         arg_uri = file_uri[7:]
-        path = urllib.url2pathname(arg_uri)
+        path = urllib.request.url2pathname(arg_uri)
         return path
 
     def exec_onionshare(self, filenames):

--- End Message ---
--- Begin Message ---
Version: 2.5-1

Hey,

onionshare does not provide anymore an nautilus integration, so we can close 
this bug report.

hefee

--

On Donnerstag, 26. Mai 2022 11:50:43 CET [email protected] wrote:
> Package: onionshare
> Version: 2.2-3
> Severity: important
> Tags: patch upstream
> X-Debbugs-Cc: [email protected]
> 
> Dear Maintainer,
> 
>    * What led up to the situation?
> 
> In Tails 5.0, onionshare 2.2-3 is installed, Python2 is not.
> 
> >From Nautilus, I want to right-click a file and share it via OnionShare.
> 
>    * What was the outcome of this action?
> 
> Nothing happens. See
> https://gitlab.tails.boum.org/tails/tails/-/issues/18990 for details.
> 
> The reason is that onionshare is using urllib.url2pathname. This has
> been renamed to urllib.request.url2pathname in python3.
> Here is a fix that keeps compatibility with python2:
> https://github.com/boyska/onionshare/commit/fd6269a7f3e54389543fd3559c8e4d39
> dfe02b09 I'm also attaching a patch that *drops* compatibility with python2.
> Choose the one you like the most :)


Attachment: signature.asc
Description: This is a digitally signed message part.


--- End Message ---

Reply via email to