summarylogtreecommitdiffstats
path: root/start.sh
blob: f5d62bab7ba04eefad755880b59fb1d071fbad4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

EXEC="/usr/share/messengerfordesktop/Messenger"

exec -a "$0" "$EXEC" $params &
pid=$!

while [ -z $winid ]
do
	winid=$(xwininfo -name "Messenger" 2> /dev/null | grep "Window id:" | grep -Eio "0x[a-z0-9]+")
done
xprop -id ${winid} -f WM_CLASS 8s -set WM_CLASS "MessengerForDesktop"

wait $pid