Need GDBus Service file for org.gnome.Shell
- From: Bazon Bloch <bazonbloch arcor de>
- To: gnome-shell-list <gnome-shell-list gnome org>
- Subject: Need GDBus Service file for org.gnome.Shell
- Date: Thu, 20 Jun 2013 12:24:24 +0200
Hello world:
SHORT VERSION:
I got the Error:
"GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.Shell was not provided by any service files"
and indeed, in /usr/share/dbus-1/services there is no service file for org.gnome.Shell.
Looking at the other files there, making such a file seems not so hard (just 3 lines, e.g. [D-BUS Service] Name=org.freedesktop.ColorHelper Exec=/usr/lib/colord/colord-session), but I don't know what to put in the "Exec=" line. I tried Exec=/usr/bin/gnome-shell, but that didn't work.
So can someone please tell me how to make a working gdbus service file for org.gnome.Shell?
Thanks!
LONG VERSION:
That works fine.
I would like to have this executed automatically about 10s after each resume, and so I created a systemd service:
[Unit]
Description=User resume actions
After=suspend.target
[Service]
User=%I
Type=simple
Environment=DISPLAY=:0
ExecStart=/usr/bin/sh -c "/path/to/reload-sys-mon.sh"
[Install]
WantedBy=suspend.target
where the script reload-sys-mon.sh is just:
unfortunately, this service doesn't work:
$ sudo systemctl status resume bazon
resume bazon service - User resume actions
Loaded: loaded (/etc/systemd/system/resume service; enabled)
Active: deactivating (stop-sigterm) since Do 2013-06-20 10:53:08 CEST; 571ms ago
Process: 1548 ExecStart=/usr/bin/sh -c /path/to/reload-sys-mon.sh (code=exited, status=0/SUCCESS)
CGroup: name=systemd:/system/resume service/resume carl service
└─1554 dbus-launch --autolaunch=0b13b59cd91045ad9b746f7b36da8550 --binary-syntax --close-stderr
Jun 20 10:53:05 cookbook systemd[1]: Starting User resume actions...
Jun 20 10:53:05 cookbook systemd[1]: Started User resume actions.
Jun 20 10:53:08 cookbook sh[1548]: Error: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.Shell was not provided by any service files
And so I need a service file to make that work. (Whyever it runs without that directly from terminal..)
Could someone please tell me how to create such a gdbus service file?
Thank you!
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]