On Thu, 2014-05-01 at 19:29 +0100, Tom Furie wrote: > --8x-------------------- > > #!/bin/sh > > xhost + si:localuser:root > sudo $@ > xhost - si:localuser:root > > --8x-------------------- > > Save it as xdo and it's even less typing than 'xhost + ... xhost -' :)
That reminds me, that I still didn't fix this for a script I'm using since > a year now. [rocketmouse@archlinux ~]$ cat /usr/local/bin/chuser #!/bin/sh # /usr/local/bin/chuser -> /.chuser/bin/chuser xhost + gksudo -u chuser "$*" xhost - exit [rocketmouse@archlinux ~]$ ls -hAl /usr/local/bin/chuser lrwxrwxrwx 1 root root 19 Mar 26 2013 /usr/local/bin/chuser -> /.chuser/bin/chuser ^^^^^^^^^^^^^^^ I will fix it tomorrow. :) -- A rather good documentary from an African-German woman. The ARYANS" on german TV 29.04., at 22:10 at ARTE, plus Q & A with Mo Asumang 05.05.2014, at 23:55, ZDF/Das kleine Fernsehspiel http://www.die-arier.com/en/index.php -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/1398969512.7904.22.camel@archlinux