From: Daniel Vedder Date: Sat, 2 May 2020 15:01:35 +0000 (+0200) Subject: Fixed symlink resolution for menu items. X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~222^2^2~251^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=0d71d03d7b06457afcd5dafa4d84493d6c0b62b5;p=nextcloud-desktop.git Fixed symlink resolution for menu items. Signed-off-by: Daniel Vedder --- diff --git a/shell_integration/nautilus/syncstate.py b/shell_integration/nautilus/syncstate.py index c90c20aa4..a3ff9f4f2 100644 --- a/shell_integration/nautilus/syncstate.py +++ b/shell_integration/nautilus/syncstate.py @@ -209,6 +209,7 @@ class MenuExtension(GObject.GObject, Nautilus.MenuProvider): all_internal_files = True for i, file_uri in enumerate(files): filename = get_local_path(file_uri.get_uri()) + filename = os.path.realpath(filename) # Check if its a folder (ends with an /), if yes add a "/" # otherwise it will not find the entry in the table