host-based access instead of Xauthority fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
disper |
Triaged
|
Wishlist
|
wvengen |
Bug Description
Hi,
when I invoke disper from X terminal such as:
frozzy@t61 ~ $ echo $DISPLAY
:0.0
frozzy@t61 ~ $ disper -l
display DFP-0: LEN
resolutions: 512x384, 1024x768, 1440x900
display DFP-1: DELL 2208WFP
resolutions: 320x240, 400x300, 416x312, 512x384, 576x432, 640x480, 640x512, 700x525, 800x600, 832x624, 896x672, 1024x768, 1152x864, 1280x960, 1280x1024, 1400x1050, 1680x1050
it says everything and it's true, but when I try to do the same thing from root account (also X terminal):
t61 ~ # sudo -u frozzy DISPLAY=:0.0 disper -l
display default: default
resolutions: 1440x900, 3120x1050
I wonder why this happens. Bug? Something wrong ?
The issue come out when I were trying to run disper through UDEV.
I think that udev is opening normal TTY by root. That's why we need to login as user and export DISPLAY.
any ideas ?
Disper -- version is 0.2.3 (nvidia-bug-report, dmesg, and X.org.0.log in attachment)
BR,
Gregory
summary: |
- two different informations and udev + host-based access instead of Xauthority fails |
Thanks for your bug report. The output you have as root seems odd, I'll have a look if I can reproduce that. Meanwhile, you might want to consult bug #330258, which discusses invoking disper as root from a script.