In nautilus file manager the context menu entry "Nextcloud" is missing on files/folders containing umlauts (öäü, maybe some more)
Create a folder e.g. "Kennwörter" -> context menu entry missing
Rename to "Kennwoerter" -> context menu is there
OS: Ubuntu 18.04.1 LTS (with latest updates)
$ nautilus --version
GNOME nautilus 3.26.4
Desktop client from ppa https://launchpad.net/~nextcloud-devs/+archive/ubuntu/client
$nextcloud --version
Nextcloud version 2.5.1git
Using Qt 5.9.5, built against Qt 5.9.5
Using 'OpenSSL 1.1.0g 2 Nov 2017'
I executed nautilus with flag --no-desktop and the following error was seen
Traceback (most recent call last):
File "/usr/share/nautilus-python/extensions/syncstate-Nextcloud.py", line 230, in get_file_items
return self.ask_for_menu_items(files)
File "/usr/share/nautilus-python/extensions/syncstate-Nextcloud.py", line 237, in ask_for_menu_items
socketConnect.sendCommand(u'GET_MENU_ITEMS:{}\n'.format(filesstring))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 17: ordinal not in range(128)
On startup, there was also this message, but I don't know if the python version is important for this issue.
sys:1: PyGIWarning: Nautilus was imported without specifying a version first. Use gi.require_version('Nautilus', '3.0') before import to ensure that the right version gets loaded.
Initializing Nextcloud-client-nautilus extension
Using python version sys.version_info(major=2, minor=7, micro=15, releaselevel='candidate', serial=1)
Hope this helps.
Even worse, it also affects folders with emojis… 😱 (…sorry… yes… for… that…)
BTW, downstream reported at Fedora here.
Same here with Linux Mint 19 Tara
Hello, is there any possibility to help in fixing this?
Is this software alive?
For non-English speaking is important that this works well. How do you explain to users that they can use common symbols that they use in their natural speaking like accents?
I can confirm that this bug still exists in client v2.6.0git.
Actually, it is enough if there's an umlaut anywhere in the filepath: If a folder name contains an umlaut, you can't share any file below that folder, even if the file name itself only contains ASCII.
Open /usr/share/nautilus-python/extensions/syncstate-Nextcloud.py and at the very beginning change
import sys
to
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
WTF ! that did the trick ! thanks @versotym !!
Are u going to do a PR here?
Glad it helped! Just did a PR #1907
Hey, if we all subscribe to PR will be more visible?
unfortunately this bug occurs for all languages, if you eg. use a # anywhere within the path.
Most helpful comment
Glad it helped! Just did a PR #1907