Created
September 29, 2015 09:16
-
-
Save mvoropaiev/dd61f2b66e69bbef23d4 to your computer and use it in GitHub Desktop.
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
# taken from: | |
# https://github.com/folkswithhats/fedy | |
# fix for double icon in dock | |
file="/usr/share/applications/google-chrome.desktop" | |
str_arr=("Desktop Entry" "NewWindow Shortcut Group" "NewIncognito Shortcut Group") | |
fix_str="StartupWMClass=Google-chrome-stable" | |
for i in "${str_arr[@]}" | |
do | |
line=`grep -n "\\[$i\\]" $file | cut -d : -f 1` | |
((line++)) | |
sed -i "$line"'i\'"$fix_str" $file | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment