Hi On Sat, Nov 29, 2014 at 10:48 AM, arnaud gaboury <arnaud.gabo...@gmail.com> wrote: > I only use some settings from mate desktop (clipboard, appearance...) > thus looking for a service file to start mate-settings-daemon. > > > /home/gabx/.config/systemd/user/mate-settings-daemon.service > --------------------------------- > [Unit] > Description=Mate settings daemon > > [Service] > Type=daemon > ExecStart=/usr/lib/mate-settings-daemon/mate-settings-daemon > > [Install] > WantedBy=wm.target > -------------------------------- > > The above service leave me with an error: > > ---------------------------------------------- > gabx@hortensia ➤➤ ~ % systemctl --user status mate-settings-daemon > ● mate-settings-daemon.service - Mate settings daemon > Loaded: loaded > (/home/gabx/.config/systemd/user/mate-settings-daemon.service; > disabled) > Active: failed (Result: exit-code) since Sat 2014-11-29 10:29:09 > CET; 14min ago > Process: 26343 > ExecStart=/usr/lib/mate-settings-daemon/mate-settings-daemon > (code=exited, status=1/FAILURE) > Main PID: 26343 (code=exited, status=1/FAILURE) > > Nov 29 10:29:09 hortensia systemd[914]: Started Mate settings daemon. > Nov 29 10:29:09 hortensia mate-settings-daemon[26343]: No protocol specified > Nov 29 10:29:09 hortensia mate-settings-daemon[26343]: ** > (mate-settings-daemon:26343): WARNING **: Unable to initialize GTK+
mate-settings-daemon might expect to be run from within an X-session. These errors look like DISPLAY= isn't set, which is reasonable because systemd starts programs from a clean environment. Anyway, you really should talk to the mate developers to ask them what's needed to run it from systemd. Just putting stuff into services usually does not work. Many of the X11 legacy expects to be run from within the X11 environment, not from a clean service. Thanks David > -------------------------------------------------- > > I have tried unsuccessfully to change parts of the service file. > Running manually the command < $ > /usr/lib/mate-settings-daemon/mate-settings-daemon > works. > > N.B: display is in my environment. > ----------------------------------------------- > gabx@hortensia ➤➤ ~ % systemctl --user show-environment > DBUS_SESSION_BUS_ADDRESS=/run/user/1000/dbus/user_bus_socket > DISPLAY=:0 > ---------------------------------------------- > > > I have no idea what I do wrong. Thank you for advices. > > > -- > > google.com/+arnaudgabourygabx > _______________________________________________ > systemd-devel mailing list > systemd-devel@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/systemd-devel _______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel