pantheon.elementary-settings-daemon: fix gnome-session detecting autostarts

For some reason GNOME 3.34 gnome-session fails to recognize
these autostarts suffixed with `-pantheon`, whereas they worked before.
It seems to work fine without the suffix, and it's verified elementary-settings-daemon
proccess are running in the session.
This commit is contained in:
worldofpeace 2019-09-25 08:16:20 -04:00 committed by Jan Tojnar
parent da8226b334
commit 513e8de83b
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4

View File

@ -90,8 +90,6 @@ stdenv.mkDerivation rec {
'';
postFixup = ''
for f in $out/etc/xdg/autostart/*; do mv "$f" "''${f%.desktop}-pantheon.desktop"; done
for autostart in $(grep -rl "OnlyShowIn=GNOME;" $out/etc/xdg/autostart)
do
echo "Patching OnlyShowIn to Pantheon in: $autostart"
@ -100,7 +98,7 @@ stdenv.mkDerivation rec {
# This breaks lightlocker https://github.com/elementary/session-settings/commit/b0e7a2867608c3a3916f9e4e21a68264a20e44f8
# TODO: shouldn't be neeed for the 5.1 greeter (awaiting release)
rm $out/etc/xdg/autostart/org.gnome.SettingsDaemon.ScreensaverProxy-pantheon.desktop
rm $out/etc/xdg/autostart/org.gnome.SettingsDaemon.ScreensaverProxy.desktop
# So the polkit policy can reference /run/current-system/sw/bin/elementary-settings-daemon/gsd-backlight-helper
mkdir -p $out/bin/elementary-settings-daemon