Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
lanmessenger
committed
Nov 7, 2016
1 parent
3738c31
commit 4ca845e
Showing
65 changed files
with
4,686 additions
and
3,316 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
SCHEMA="com.canonical.Unity.Panel" | ||
OBJECT="systray-whitelist" | ||
APP="$1" | ||
if [ ! "$(gsettings get $SCHEMA $OBJECT 2>/dev/null || echo FALSE)" = "FALSE" ]; then | ||
echo "Whitelisting $APP to work around Unity design.." | ||
OBJARRAY=$(gsettings get $SCHEMA $OBJECT | sed -s -e "s#\['##g" -e "s#', '# #g" -e "s#'\]##g") | ||
if [[ "${OBJARRAY[@]}" =~ "$APP" ]]; then | ||
echo "$APP already whitelisted, skipping" | ||
else | ||
OBJARRAY=("${OBJARRAY[@]}" $APP) | ||
OBJARRAY=$(echo ${OBJARRAY[@]} | sed -s -e "s# #', '#g") | ||
OBJSET="['"$OBJARRAY"']" | ||
gsettings set $SCHEMA $OBJECT "$OBJSET" | ||
fi | ||
else | ||
echo "This is not a Canonical \"designed\" product." | ||
fi |
Oops, something went wrong.