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:

I still got the flat-CPU-graph-problem with
https://extensions.gnome.org/extension/120/system-monitor/ after resume
from suspend. Thanks to this list, I now how to restart that via dbus:
gdbus call --session --dest org.gnome.Shell --object-path /org/gnome/Shell
--method org.gnome.Shell.Extensions.ReloadExtension
system-moni...@paradoxxx.zero.gmail.com

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:


#!/bin/bash

sleep 10s && gdbus call --session --dest org.gnome.Shell --object-path
/org/gnome/Shell --method org.gnome.Shell.Extensions.ReloadExtension
system-moni...@paradoxxx.zero.gmail.com

exit 0


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!
_______________________________________________
gnome-shell-list mailing list
gnome-shell-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gnome-shell-list

Reply via email to