pika-installer-gtk4/debian/extras/pika-installer
Ward from fusion-voyager-3 396560afe7 update to git
2024-01-24 22:17:19 +03:00

17 lines
668 B
Bash

#! /bin/bash
if env | grep XDG_SESSION_DESKTOP | grep -i -E 'gnome|ubuntu|pika'
then
gnome-session-inhibit /usr/lib/pika/pika-installer-gtk4/bin/pika-installer-gtk4
elif env | grep XDG_SESSION_DESKTOP | grep -i -E 'kde|plasma'
then
# Disable Auto Suspend
cp -vf /etc/pika-installer-gtk4/powermanagementprofilesrc ~/.config/ || exit 1
# Disable screen lock
kwriteconfig5 --file kscreenlockerrc --group Daemon --key Autolock false
qdbus org.freedesktop.ScreenSaver /ScreenSaver configure
/usr/lib/pika/pika-installer-gtk4/bin/pika-installer-gtk4
else
/usr/lib/pika/pika-installer-gtk4/bin/pika-installer-gtk4
fi