Skip to content

Commit

Permalink
Merge pull request #181 from KanoComputing/close-scratch-on-switch
Browse files Browse the repository at this point in the history
Fixing scratch not closing on Dashboard switch
  • Loading branch information
skarbat committed Jun 3, 2016
2 parents 1c9d942 + 69ea296 commit 6686626
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion config/sudoers.d/kano-desktop_conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
# The alias allows us to limit the scope of a password-less pkill run as the superuser.
# Look at kano-desktop-lxpanel systemd unit to see usage of these aliases.
#
Cmnd_Alias KILL_DESKTOP_WIDGETS = /usr/bin/pkill -f kano-settings, /usr/bin/pkill -f kano-wifi-gui
# Scratch is sudoed from kdesk and suffers from a similar issue.
#
Cmnd_Alias KILL_DESKTOP_WIDGETS = /usr/bin/pkill -f kano-settings, \
/usr/bin/pkill -f kano-wifi-gui, /usr/bin/pkill -f scratch

%sudo ALL=(root) NOPASSWD: KILL_DESKTOP_WIDGETS

Expand Down
4 changes: 3 additions & 1 deletion systemd/kano-desktop.service
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
# The "Requires" clause makes a the lxpanel start along with it,
# which allows for grouping several services from this one.
#
# FIXME: For now it's still under early testing (starts kdesk only with hourglass)
# Forcibly closing scratch on termination, because it is sudoed
# and is misteriously started outside systemd cgroup.
#

[Unit]
Expand All @@ -18,3 +19,4 @@ Conflicts=kano-dashboard.service
[Service]
ExecStartPre=/usr/bin/kdesk-hourglass-app "lxpanel"
ExecStart=/usr/bin/kdesk
ExecStop=/usr/bin/sudo /usr/bin/pkill -f scratch

0 comments on commit 6686626

Please sign in to comment.