blob: d8f9ffaf74fb3473b37c8233c78073b140eabbc2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
post_install() {
#touch /usr/share/backgrounds/linuxmint/default_background.jpg
#gsettings reset-recursively org.cinnamon
restart_Cinnamon
}
post_upgrade() {
restart_Cinnamon
}
post_remove() {
restart_Cinnamon
}
restart_Cinnamon() {
export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/${SUDO_UID}/bus"
sudo -u "#${SUDO_UID}" -H dbus-send --bus=$DBUS_SESSION_BUS_ADDRESS \
--type=method_call --dest=org.Cinnamon /org/Cinnamon \
org.Cinnamon.RestartCinnamon boolean:false 2> /dev/null
}
|