15 lines
437 B
Bash
Executable File
15 lines
437 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Source Qubes library.
|
|
. /usr/lib/qubes/init/functions
|
|
|
|
if ! is_fully_persistent && test -f /etc/xdg/autostart/print-applet.desktop ; then
|
|
if qsvc cups ; then
|
|
# Allow also notification icon
|
|
sed -i -e '/^NotShowIn=.*QUBES/s/;QUBES//' /etc/xdg/autostart/print-applet.desktop
|
|
else
|
|
# Disable notification icon
|
|
sed -i -e '/QUBES/!s/^NotShowIn=\(.*\)/NotShowIn=QUBES;\1/' /etc/xdg/autostart/print-applet.desktop
|
|
fi
|
|
fi
|