Replies: 6 comments 2 replies
-
@clriis Essentially this is a Ubuntu problem - the user you are running the client as, does not have the correct XDG variables required to make the dbus server work, which is why notifications get disabled. If you cant get this working - seek support from Ubuntu and/or Linux Mint developers. |
Beta Was this translation helpful? Give feedback.
-
@clriis An example of GUI notifications (running via Ubuntu 24.x , not Linux Mint 22 however): Specifically, v2.5.x will:
In the event that the required runtime environment variables are missing, the following waning will be printed:
In the event that the D-Bus message bus daemon is not available, the following warning will be printed:
In the event that everything is OK, the following will be printed:
This should help clarify why GUI notifications cannot be enabled, rather than the generic unhelpful message that v2.4.x provides ( |
Beta Was this translation helpful? Give feedback.
-
@clriis If you are still encountering an issue, please validate your environment against the information above. |
Beta Was this translation helpful? Give feedback.
-
(Thanks for this software, btw!) After having some critical files go out of sync between OneDrive, my laptop, and my desktop I wanted to get notifications working so that I can see if something goes wrong. I am not a systemd expert (or novice, for that matter), but here's what I found. I'm running Linux Mint 21.3, and OneDrive Client version v2.5.1.1+np1+1.1, installed via the recommended instructions in the install.md file, and running it as a service via the "systemctl --user method". I'll spare you the 1.5 hours of reading/troubleshooting and just give you the "what I think is going on TL;DR": I think that systemd is spinning up the OneDrive service at the same time it's spinning up the dbus service, and dbus takes longer than OneDrive so it looks like it's not running. That's why "systemctl --user restart onedrive" causes it to start working (as noted in this bug report: #934). My first attempt to fix (like one commenter in the bug above) was to try using After & Wants in the onedrive.service file, but that didn't work. I feel I can be forgiven for thinking that "After" means "After it's up and running", but that's not always the case. "After" is satisfied as soon as systemd spins up the separate service process for services that are of type "simple" (which dbus is). I feel like there's several possible solutions for this:
I'm currently using the 3rd option, successfully after reboots, logins/logouts/"systemctl --user restart". I worry about what will happen when a new version of the OneDrive client is released (will it overwrite my onedrive.service file?). I think that the first option is probably overly optimistic. The second option is interesting, but that would be up to @abraunegg. I feel I should give credit to this stackexchange post for basically explaining what was going on and starting me down the dbus service type. Hope this helps someone. Here's what my onedrive.service file is now:
|
Beta Was this translation helpful? Give feedback.
-
Yes it would (should) ... Added this via ba1d225 - however the binary path really should be /usr/bin/sleep to be cross platform compatible |
Beta Was this translation helpful? Give feedback.
-
Thanks! Would adding:
Be useful? That way, as I understand it, it will "want" dbus if it's available, but not "require"/block it if it's not. I think that would be needed to be as correct as possible. I think that it should still work as you have it since the onedrive start is delayed, but still... |
Beta Was this translation helpful? Give feedback.
-
I just did a clean install of Mint 22 on my laptop and then installed 'onedrive'
As Mint 22 is based on Ubuntu 24.04 I am using this repository:
http://download.opensuse.org/repositories/home:/npreining:/debian-ubuntu-onedrive/xUbuntu_24.04 InRelease
Everything works perfectly, but I don't get a log and notifications are not showing if onedrive is started with 'systemctl --user enable onedrive'
When I check, I get this:
As you can see, the service fails to register with 'dbus'.
Is there a tweak to rectify this?
Beta Was this translation helpful? Give feedback.
All reactions