You are not logged in.

#1 2021-10-22 08:46:11

rgzfxf6bhu
Member
Registered: 2015-10-30
Posts: 101

Make Gnome autostart wait for service

I try to use Gnome's autostart to start an application after booting.

Sometimes it works, but sometimes not. When it doesn't work I see following in the log:

First:

GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Notifications was not provided by any .service files

A few lines later:

Oct 22 10:16:50 bac dbus-daemon[766]: [session uid=1001 pid=766] Successfully activated service 'org.gnome.Shell.Notifications'

I guess that this app actually requires org.gnome.Shell.Notifications. I already checked desktop-entry-spec, but I don't see any option that would make the autostart entry in .config/autostart/ wait for org.gnome.Shell.Notifications.

Using X-GNOME-Autostart-Delay=120 didn't help neither. I still see sometimes the same error message in the log.

Also X-GNOME-UsesNotifications=true doesn't help.

Am I missing something? How to make Gnome autostart wait for service?

Last edited by rgzfxf6bhu (2021-10-22 08:49:48)

Offline

#2 2021-10-22 11:08:20

schard
Forum Moderator
From: Hannover
Registered: 2016-05-06
Posts: 2,678
Website

Re: Make Gnome autostart wait for service

Then don't use the Gnome autostart feature, but a systemd user service with the respective dependency.


Inofficial first vice president of the Rust Evangelism Strike Force

Offline

#3 2021-10-22 12:00:04

robson75
Member
From: Poland
Registered: 2020-06-28
Posts: 144

Re: Make Gnome autostart wait for service

And do you have the accountsservice package installed, then you need to install it and run the service.


Arch Linux Xfce - 64Bit Linux User #621110

Offline

#4 2021-10-22 12:47:07

rgzfxf6bhu
Member
Registered: 2015-10-30
Posts: 101

Re: Make Gnome autostart wait for service

schard wrote:

Then don't use the Gnome autostart feature, but a systemd user service with the respective dependency.

True that would be an option as well. But maybe I should open an issue upstream, as I actually expect options such as X-GNOME-UsesNotifications=true to wait until org.freedesktop.Notifications is available.

robson75 wrote:

And do you have the accountsservice package installed, then you need to install it and run the service.

Yes I do have accountsservice installed, as it is a dependency of gnome-shell anyways. Do I have to configure something here?


Maybe a more general question, I just found X-GNOME-Autostart-Delay and X-GNOME-UsesNotifications on stackoverflow, but somehow I don't find the official documentation!?

Offline

#5 2021-10-22 12:57:18

robson75
Member
From: Poland
Registered: 2020-06-28
Posts: 144

Re: Make Gnome autostart wait for service

rgzfxf6bhu wrote:

Yes I do have accountsservice installed, as it is a dependency of gnome-shell anyways. Do I have to configure something here?

It is not enough to have the accountsservice package installed, you need to enable it

systemctl enable accounts-daemon.service

Edit.
Sorry I made a mistake, already corrected.

Last edited by robson75 (2021-10-22 13:06:51)


Arch Linux Xfce - 64Bit Linux User #621110

Offline

#6 2021-10-22 13:03:05

rgzfxf6bhu
Member
Registered: 2015-10-30
Posts: 101

Re: Make Gnome autostart wait for service

robson75 wrote:
systemctl enable accountsservice.service

There is no accountsservice.service when I look here there is only one systemd service.

/usr/lib/systemd/system/accounts-daemon.service

That one is active and running.

So I don't think that accountsservice is related to this issue.

Offline

Board footer

Powered by FluxBB