Summary: | Synology Drive Client doesn't autostart | ||
---|---|---|---|
Product: | [Plasma] plasmashell | Reporter: | Syiad <syiad.al-duri> |
Component: | Startup process | Assignee: | Plasma Bugs List <plasma-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | comp.keith55, kde, m.b.pohl, nate |
Priority: | NOR | Keywords: | regression |
Version First Reported In: | 5.25.5 | ||
Target Milestone: | 1.0 | ||
Platform: | Kubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: |
Output of systemd-cgls after login
Session log from affected Wayland session synology autostart file |
Description
Syiad
2022-02-17 12:11:30 UTC
Does it have an entry in System Settings > Startup and Shutdown > Autostart? Yes, there is an entry with the command 'synology-drive autostart'. It has been generated from the Synology Drive Settings and it used to work up until KDE 5.23.90. Please attach the session log. and/or output of systemd-cgls after login Created attachment 147100 [details]
Output of systemd-cgls after login
The output of systemd-cgls after login is attached. Where would I find the session log, please?
The autostart worked with 5.23. It stopped working when 5.23.90 was installed. It started working again, without any changes to the autostart config, after purging 5.23.90, i.e. reverting back to 5.23. So, it seems something affecting autostart has changed after 5.23. ~/.local/share/sddm/wayland-session.log Created attachment 147102 [details]
Session log from affected Wayland session
Thanks, session log is attached now.
No idea what caused it or how it was fixed, but it works again from 5.24.3 onwards. It was fixed with 5.24.3, but it resurfaced with 5.25.4. Can you attach the .desktop file that wants to be autostarted? It'll be in /etc/xdg/autostart/ or ~/.config/autostart/. Created attachment 152030 [details]
synology autostart file
There is a link in ~/.config/autostart. It points to /opt/Synology/SynologyDrive/synology-drive-autostart.
Maybe 5.25 has a problem with links in ~/.config/autostart? The other files in that directory (yakuake and keepassxc) get started OK; they are not links.
. Can you give it a try by copying the file there? OK, here's what I did: 1. Move the link "synology-drive-autostart.desktop" from ~/.config/autostart to somewhere else. 2. Copy the link target "synology-drive-autostart" to ~/.config/autostart 3. Rename the file "synology-drive-autostart" in ~/.config/autostart to "synology-drive-autostart.desktop" 4. Reboot Result: synology drive still does not autostart. Conclusion: The fact that there used to be a link in ~/.config/autostart is not the cause for the problem. I can manually start synology drive by clicking on the file "synology-drive-autostart.desktop" in ~/.config/autostart and selecting 'execute'. So the file seems to work; it just doesn't get executed at startup. Thanks for the info!
From the wayland log, looks like it's doing the right thing:
> org.kde.plasma.session: Starting autostart service "/home/syiad/.config/autostart/synology-drive-autostart.desktop" ("/usr/bin/synology-drive", "autostart")
Somehow the problem has disappeared with Kubuntu 22.10. For anyone still having this issue, I found a workaround. Create a script which starts synology drive client and add a sleep infinity at the end. Add the script to your autostart. It's not pretty but it works for me. I've tried shorter sleeps, but this causes the drive client to close after the sleep is over. My script looks like this: #! /bin/sh synology-drive autostart sleep infinity This bug has reappeared under Plasma 6.0.4. The fix supplied by Markus worked. The Synology client adds a link in autostart to its .desktop when it runs. I added a login script to autostart and tried various options to spawn a separate task which made no difference. The initial task must remain for the Synology client to run. The same issue occurs for my Ubuntu Gnome PC, so not just KDE. #! /bin/bash #have tried: # /usr/bin/synology-drive autostart # nohup synology-drive autostart & # synology-drive autostart & disown #the Markus fix: synology-drive autostart sleep infinity My previous comment was for the package from Synology. As a further test, this was replaced by the FlatPack version and autostart no longer worked. The Synology Client creates the autostart link when it first runs but FlatPack uses a different folder structure. I copied the Synology Drive Client "ponts to" string from Application launcher and created a link ~/.config/autostart/SynologyClient.desktop pointing to this string. The client now autostarts. |