5 # This program lets you modify the "systray-whitelist" added in Ubuntu 11.04.
6 # Programs that implement a "GTK status icon" won't show up in the tray if
7 # they are not in the whitelist.
10 # Pontus Östlund <pontus@poppa.se>
12 # Copyright (c) 2011 Pontus Östlund
14 # This program is free software: you can redistribute it and/or modify
15 # it under the terms of the GNU General Public License as published by
16 # the Free Software Foundation, either version 3 of the License, or
17 # (at your option) any later version.
19 # This program is distributed in the hope that it will be useful,
20 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 # GNU General Public License for more details.
24 # You should have received a copy of the GNU General Public License
25 # along with this program. If not, see <http://www.gnu.org/licenses/>.
31 key=`gsettings get com.canonical.Unity.Panel systray-whitelist`
33 for idx in ${key:1:-1};
37 if test "$idx" == "$2";
48 `gsettings set com.canonical.Unity.Panel systray-whitelist "$new"`
49 echo "New whitelist: $new"
50 echo "You need to logout/login for the change to take effect"
52 echo "The program '$2' is already whitelisted"
60 key=`gsettings get com.canonical.Unity.Panel systray-whitelist`
62 for idx in ${key:1:-1};
66 if test "$idx" == "$2";
77 `gsettings set com.canonical.Unity.Panel systray-whitelist "$new"`
78 echo "New whitelist: $new"
79 echo "You need to logout/login for the change to take effect"
81 echo "The program '$2' isn't whitelisted"
87 echo "Systray whitelist:"
88 key=`gsettings get com.canonical.Unity.Panel systray-whitelist`
95 echo " $0 [action] [program]"
98 echo " add Adds [program] to whitelist"
99 echo " remove Removes [program] from whitelist"
100 echo " show Displays the whitelist"
101 echo " help Shows this text"