jaystrictor / gnome-shell-extension-syncthing

GNU General Public License v3.0
88 stars 14 forks source link

Shortcuts to folder not working #50

Closed flashkiller999 closed 5 years ago

flashkiller999 commented 5 years ago

Describe the bug When trying to click any of the synced folders in the dropdown of the trayicon, I get the following error:

Failed to launch URI "file:///home/USERNAMEREMOVED/~/Syncthing/Folder1"
Error when getting information for file "/home/USERNAMEREMOVED/~/Syncthing/Folder1": No such file or directory

The real folder location should be ~/Syncthing/Folder1 (or the equivalent fullpath)

Version information:

Logs Add the output of

● syncthing.service - Syncthing - Open Source Continuous File Synchronization
   Loaded: loaded (/home/USERNAMEREMOVED/.config/systemd/user/syncthing.service; enabled; vendor preset: enabled)
   Active: active (running) since Sun 2019-11-17 17:57:01 CET; 26min ago
     Docs: man:syncthing(1)
 Main PID: 12239 (syncthing)
   CGroup: /user.slice/user-1000.slice/user@1000.service/syncthing.service
           └─12239 /usr/bin/syncthing -no-browser -no-restart -logflags=0

journalctl -b /usr/bin/gnome-shell | grep syncthingicon

Nov 17 18:13:40 Desktop01 gnome-shell[4043]:   inflating: /home/USERNAMEREMOVED/.local/share/gnome-shell/extensions/syncthingicon@jay.strict@posteo.de/folders.js
Nov 17 18:13:40 Desktop01 gnome-shell[4043]:   inflating: /home/USERNAMEREMOVED/.local/share/gnome-shell/extensions/syncthingicon@jay.strict@posteo.de/icons/hicolor/scalable/status/exclamation-triangle.svg
Nov 17 18:13:40 Desktop01 gnome-shell[4043]:    creating: /home/USERNAMEREMOVED/.local/share/gnome-shell/extensions/syncthingicon@jay.strict@posteo.de/icons/hicolor/scalable/apps/
Nov 17 18:13:40 Desktop01 gnome-shell[4043]:   inflating: /home/USERNAMEREMOVED/.local/share/gnome-shell/extensions/syncthingicon@jay.strict@posteo.de/schemas/gschemas.compiled
Nov 17 18:13:40 Desktop01 gnome-shell[4043]:   inflating: /home/USERNAMEREMOVED/.local/share/gnome-shell/extensions/syncthingicon@jay.strict@posteo.de/extension.js
Nov 17 18:13:40 Desktop01 gnome-shell[4043]:   inflating: /home/USERNAMEREMOVED/.local/share/gnome-shell/extensions/syncthingicon@jay.strict@posteo.de/convenience.js
Nov 17 18:13:40 Desktop01 gnome-shell[4043]:   inflating: /home/USERNAMEREMOVED/.local/share/gnome-shell/extensions/syncthingicon@jay.strict@posteo.de/stylesheet.css
Nov 17 18:13:40 Desktop01 gnome-shell[4043]:   inflating: /home/USERNAMEREMOVED/.local/share/gnome-shell/extensions/syncthingicon@jay.strict@posteo.de/syncthing_api.js
Nov 17 18:13:40 Desktop01 gnome-shell[4043]:   inflating: /home/USERNAMEREMOVED/.local/share/gnome-shell/extensions/syncthingicon@jay.strict@posteo.de/webviewer.js
Nov 17 18:13:40 Desktop01 gnome-shell[4043]:    creating: /home/USERNAMEREMOVED/.local/share/gnome-shell/extensions/syncthingicon@jay.strict@posteo.de/icons/hicolor/symbolic/apps/
Nov 17 18:13:40 Desktop01 gnome-shell[4043]:   inflating: /home/USERNAMEREMOVED/.local/share/gnome-shell/extensions/syncthingicon@jay.strict@posteo.de/icons/hicolor/scalable/status/database.svg
Nov 17 18:13:40 Desktop01 gnome-shell[4043]:   inflating: /home/USERNAMEREMOVED/.local/share/gnome-shell/extensions/syncthingicon@jay.strict@posteo.de/icons/hicolor/scalable/status/pause.svg
Nov 17 18:13:40 Desktop01 gnome-shell[4043]:   inflating: /home/USERNAMEREMOVED/.local/share/gnome-shell/extensions/syncthingicon@jay.strict@posteo.de/icons/hicolor/symbolic/apps/syncthing-symbolic.svg
Nov 17 18:13:40 Desktop01 gnome-shell[4043]:   inflating: /home/USERNAMEREMOVED/.local/share/gnome-shell/extensions/syncthingicon@jay.strict@posteo.de/icons/hicolor/scalable/apps/syncthing.svg
Nov 17 18:13:40 Desktop01 gnome-shell[4043]:   inflating: /home/USERNAMEREMOVED/.local/share/gnome-shell/extensions/syncthingicon@jay.strict@posteo.de/icons/hicolor/scalable/status/cloud-down.svg
Nov 17 18:13:40 Desktop01 gnome-shell[4043]:   inflating: /home/USERNAMEREMOVED/.local/share/gnome-shell/extensions/syncthingicon@jay.strict@posteo.de/saxes.js
Nov 17 18:13:40 Desktop01 gnome-shell[4043]:   inflating: /home/USERNAMEREMOVED/.local/share/gnome-shell/extensions/syncthingicon@jay.strict@posteo.de/filewatcher.js
Nov 17 18:13:40 Desktop01 gnome-shell[4043]:   inflating: /home/USERNAMEREMOVED/.local/share/gnome-shell/extensions/syncthingicon@jay.strict@posteo.de/prefs.js
Nov 17 18:13:40 Desktop01 gnome-shell[4043]:   inflating: /home/USERNAMEREMOVED/.local/share/gnome-shell/extensions/syncthingicon@jay.strict@posteo.de/icons/hicolor/scalable/status/question.svg
Nov 17 18:13:40 Desktop01 gnome-shell[4043]:   inflating: /home/USERNAMEREMOVED/.local/share/gnome-shell/extensions/syncthingicon@jay.strict@posteo.de/systemd.js
Nov 17 18:13:40 Desktop01 gnome-shell[4043]:   inflating: /home/USERNAMEREMOVED/.local/share/gnome-shell/extensions/syncthingicon@jay.strict@posteo.de/schemas/org.gnome.shell.extensions.syncthing.gschema.xml
Nov 17 18:13:40 Desktop01 gnome-shell[4043]:  extracting: /home/USERNAMEREMOVED/.local/share/gnome-shell/extensions/syncthingicon@jay.strict@posteo.de/metadata.json
Nov 17 18:13:41 Desktop01 gnome-shell[4043]: [syncthingicon] found syncthing config file in /home/USERNAMEREMOVED/.config/syncthing
Nov 17 18:14:54 Desktop01 gnome-shell[4043]: [syncthingicon] found syncthing config file in /home/USERNAMEREMOVED/.config/syncthing
jaystrictor commented 5 years ago

Seems like a relative path is interpreted as an absolute path. In my config.xml file, all paths are given as absolute paths, and I guess relative paths in config.xml are an exception, since this bug report took so long to emerge.

Is there a specific reason you have relative paths in ~/.config/syncthing/config.xml?

jaystrictor commented 5 years ago

Hmm, my last comment was not correct at all. In fact, relative paths are interpreted correctly.

Just ~ is not rewritten to the content of $HOME.

flashkiller999 commented 5 years ago

Hi, thanks for the reply.

There is no definitive reason why I use ~. The main one would be that the default after installing Syncthing is that the path is ~, so I just added on to this. Cheers

jaystrictor commented 5 years ago

Hope this fixes it for you.