Difference between revisions of "User:Axanon"

From ArchWiki
Jump to: navigation, search
Line 4: Line 4:
 
== Misc How-tos==
 
== Misc How-tos==
 
=== Run X Apps while su'd locally ===
 
=== Run X Apps while su'd locally ===
{{bc|
+
{{bc|<nowiki>
 
userA@host $ echo $DISPLAY
 
userA@host $ echo $DISPLAY
 
userA@host $ xauth list "$DISPLAY"
 
userA@host $ xauth list "$DISPLAY"
userA@host $ su - otheruser
+
userA@host $ su - userB
  
userA@host $ xauth add <output from 'xauth list' above>
+
userB@host $ xauth add <output from 'xauth list' above>
userA@host $ export DISPLAY="<output from echo $DISPLAY>"
+
userB@host $ export DISPLAY="<output from echo $DISPLAY>"
export $(dbus-launch)
+
userB@host $export $(dbus-launch)</nowiki>
 
}}
 
}}

Revision as of 12:36, 30 January 2013

Sandboxes

Misc How-tos

Run X Apps while su'd locally

userA@host $ echo $DISPLAY
userA@host $ xauth list "$DISPLAY"
userA@host $ su - userB

userB@host $ xauth add <output from 'xauth list' above>
userB@host $ export DISPLAY="<output from echo $DISPLAY>"
userB@host $export $(dbus-launch)