Skip to content

Commit

Permalink
Merge pull request #136 from hiisukun/master
Browse files Browse the repository at this point in the history
  • Loading branch information
bastimeyer committed Sep 14, 2015
2 parents 837e57e + 9655c15 commit e248c6c
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion build/resources/linux/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,20 @@ if [[ ! -z `ldd $HERE/$EXEC | grep "libudev.so.0 => not found"` ]]; then
fi

# run the application
exec -a "$0" "$HERE/$EXEC" "$@"
exec -a "$0" "$HERE/$EXEC" "$@" &
pid=$!

# fix application name in gnome panel
# consider for: GNOME / Unity / KDE / XFCE / X-Cinnamon / LXDE
# useful also for cairo-dock, gnome dash-to-dock, and plank/docky
if ( [[ "$XDG_CURRENT_DESKTOP" = "GNOME" ]] && [[ ! -z `which wmctrl` ]] ); then
sleep 1
while [ -z $winid ]
do
sleep 1
winid=$(wmctrl -lpx | grep $pid | cut -d' ' -f 1)
done
xprop -id ${winid} -f WM_CLASS 8s -set WM_CLASS "Livestreamer Twitch GUI"
fi

wait $pid

0 comments on commit e248c6c

Please sign in to comment.