Re: Dropbox error

Hello, I’m new to Antergos, so first I want to thank everyone involved in this incredible project. I’ve always wanted to try Arch but never had time to install it by myself, Antergos is definitely the way to go.

Yesterday I was playing with dnscrypt and I found this warning in the journal:
[/usr/lib/systemd/system/dropbox.service:3] The dependency could not be added in systemd-user-sessions, ignoring: Invalid argument

It shows when I type “start systemctl start / reload-or-restart d[TAB]” or “systemctl edit dropbox.service --full

I have added .target to the systemd-user sessions in /usr/lib/systemd/system/dropbox.service and the warning has disappeared.

In the AUR repository they are using this (in case you want to stay in sync):
Https://aur.archlinux.org/cgit/aur.git/tree/dropbox.service?h=dropbox

[Unity]
Description = Dropbox

[Service]
Type = simple
ExecStart = / usr / bin / dropbox
ExecReload = / bin / kill -HUP $ MAINPID
KillMode = process
Reset = in case of failure

[Install]
WantedBy = default.target

https://aur.archlinux.org/cgit/aur.git/tree/[email protected]?h=dropbox

[Unity]
Description = Dropbox
After = local-fs.target network.target

[Service]
Type = simple
ExecStart = / usr / bin / dropbox
ExecReload = / bin / kill -HUP $ MAINPID
KillMode = process
Reset = in case of failure
User =% I

[Install]
WantedBy = multi-user.target

But in my config I have just changed “After = local-fs.target network.target systemd-user-sessions” to “After = local-fs.target network.target systemd-user-sessions.target” and the problem is fixed.

Dropbox is working fine with the .desktop file, but it would be cleaner to have this fixed to avoid the warnings in the journal.

Edited:
Issued reported and fixed in github

Thanks in advance