View Single Post
  #3   (View Single Post)  
Old 20th May 2009
IdOp's Avatar
IdOp IdOp is offline
Too dumb for a smartphone
 
Join Date: May 2008
Location: twisting on the daemon's fork(2)
Posts: 1,027
Default

hi gosha, A common reason that can happen is that when you switch over to the new login, the DISPLAY environment variable is not set. Graphics app's need that variable to know what X display to connect to. So the fix would be simple, just set the variable with something like (for sh-type shells)

$ export DISPLAY=:0.0

or whatever the appropriate DISPLAY was before you switched users. Note: some ways of logging in will automatically set DISPLAY for you and the problem won't happen.
Reply With Quote