You are not logged in.

#1 2025-05-07 15:39:12

tombenko
Member
From: Balassagyarmat
Registered: 2013-08-24
Posts: 137

[Solved] Xfce don't autostart rclone

Hay!
I freshly installed rclone to access my Onedrive and Google Drive shares. It is configurated correctly. From terminal I can start as daemon both shares. The used command were

# rclone --vfs-cache-mode "onedrive": ~/Megosztások/OneDrive --daemon
# rclone --vfs-cache-mode "googledrive": ~/Megosztások/GoogleDrive --daemon

and they did the work correctly. But when I write them into the XFCE autostart list, they don't run. The .desktop files are:

[Desktop Entry]
Encoding=UTF-8
Version=0.9.4
Type=Application
Name=OneDrive
Comment=Csatlakozás a Microsoft OneDrive megosztáshoz
Exec=rclone --vfs-cache-mode writes mount "onedrive": ~/Megosztások/OneDrive --daemon
OnlyShowIn=XFCE;
RunHook=0
StartupNotify=false
Terminal=false
Hidden=false

and

[Desktop Entry]
Encoding=UTF-8
Version=0.9.4
Type=Application
Name=Google Drive
Comment=Csatlakozás a Google Drive megosztáshoz
Exec=rclone --vfs-cache-mode writes mount "googledrive": ~/Megosztások/GoogleDrive --daemon
OnlyShowIn=XFCE;
RunHook=0
StartupNotify=false
Terminal=false
Hidden=false

Something is wrong, but I don't understand, what. There is no warning or error in the .xsession-errors file related to rclone.

Last edited by tombenko (2025-05-08 09:35:47)

Offline

#2 2025-05-07 17:31:43

Fixxer
Member
From: Poland
Registered: 2011-08-29
Posts: 232

Re: [Solved] Xfce don't autostart rclone

Probably tilde character isn't exapnded properly. User full path to user home directory:

Exec=rclone --vfs-cache-mode writes mount "googledrive": /home/Megosztások/GoogleDrive --daemon

or use misshapen / ugly "hack" with shell instance:

Exec=/bin/sh -c "rclone --vfs-cache-mode writes mount "googledrive": ~/GoogleDrive --daemon"

Look here:
https://unix.stackexchange.com/a/175130

Last edited by Fixxer (2025-05-07 17:32:17)

Offline

#3 2025-05-08 09:36:12

tombenko
Member
From: Balassagyarmat
Registered: 2013-08-24
Posts: 137

Re: [Solved] Xfce don't autostart rclone

Okay, it works. Thanks!

Offline

Board footer

Powered by FluxBB