echo $DBUS_SESSION_BUS_ADDRESS > ~/.dbus_session
to your autostart.
]]>DBUS_SESSION_BUS_ADDRESS=`cat /home/lucke/.dbus_session` su lucke -c "qdbus org.kde.amarok /Player org.freedesktop.MediaPlayer.Stop"
in pm-utils.
]]>#!/bin/bash
#
if(pidof pidgin)
then
case $1 in
pre)
su federico -c "purple-remote setstatus?status=offline"
;;
post)
su federico -c "purple-remote setstatus?status=available"
;;
esac
fi
Journalctl returns:
Sep 11 12:37:10 arch systemd-sleep[5100]: Suspending system...
Sep 11 12:37:15 arch systemd-sleep[5100]: System resumed.
Sep 11 12:37:15 arch systemd-sleep[5100]: 5087 4900
Sep 11 12:37:15 arch systemd-sleep[5100]: No existing libpurple instance detected.
Sep 11 12:37:15 arch systemd-sleep[5100]: /usr/lib/systemd/system-sleep/10pidgin exited with exit status 1.
First of all, i noticed that pidof returns two values when called by systemd sleep, while indeed during my session it returns only one:
pidof pidgin
4900
.
Last, what does "No existing libpurple instance detected" mean?
Any help will be appreciated!
Thank you!