On Mon, Feb 10, 2014 at 7:10 PM, Damjan <gdamjan@xxxxxxxxx> wrote: > > why don't you just use sudo? > > $ sudo env > ... > DISPLAY=:0 > XAUTHORITY=/home/damjan/.Xauthority > ... > > those are propagated by default (I don't remember setting this up) > > > -- > дамјан Well... locally, at least, that's exactly why I needed that wrapper: $ command sudo env | grep ^XAUTHORITY $ sudo env | grep ^XAUTHORITY XAUTHORITY=/home/martti/.Xauthority you yourself are obviously relying on one of the proposed fixes, likely the one from your sudoers file. cheers! mar77i