mybin

my ~/bin
git clone https://a3nm.net/git/mybin/
Log | Files | Refs | README

commit 7eda649066dfa02a54fdae34308ee739b3c2e2c9
parent 4b081d4c8ef9c35d7da35add93287ebd49ce6dc0
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Sat,  8 Aug 2015 18:50:29 +0200

fixes

Diffstat:
skype | 13+++++++------
1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/skype b/skype @@ -15,9 +15,9 @@ DCMD="sudo su skype -s /bin/bash -c" PRIVPORT="23" # a port that skype shouldn't be able to access if groups skype | tr -d ':' | tr ' ' '\n' | grep -v '^$' | - grep -v skype | grep -v audio > /dev/null + grep -v skype > /dev/null then - echo "skype should be in group skype and audio, actual groups are:" + echo "skype should be in group skype, actual groups are:" groups skype echo aborted exit 1 @@ -125,7 +125,7 @@ LOG="/home/skype/xpra/:${DISPLAYNUM}.log" case "$1" in start) echo "starting skype..." - $DCMD "xpra --no-pulseaudio \ + $DCMD "xpra --no-pulseaudio --encoding=rgb24 \ --mmap-group --socket-dir=/home/skype/xpra \ start :$DISPLAYNUM 2>&1" # ugly, can we do better? @@ -144,14 +144,15 @@ start) echo "running skype" # run skype $DCMD "DISPLAY=:$DISPLAYNUM /home/skype/skype/skype" & - echo "now attaching" ;& attach) + echo "attaching" xpra --socket-dir=~skype/xpra attach :$DISPLAYNUM - ;; + ;& detach) + echo "detaching" xpra --socket-dir=~skype/xpra detach :$DISPLAYNUM - ;; + ;& stop) if $LISTCMD > /dev/null then