.xinitrc: Included a small line that echoes the username to /tmp/currentuser
authorMichael Mrozek <EvilDragon@openpandora.de>
Wed, 21 Apr 2010 03:04:51 +0000 (05:04 +0200)
committerMichael Mrozek <EvilDragon@openpandora.de>
Wed, 21 Apr 2010 03:04:51 +0000 (05:04 +0200)
recipes/pandora-system/pandora-skel/.xinitrc

index 803ac6d..6064a18 100644 (file)
@@ -41,6 +41,9 @@ fi
 #Load up the proper keymap for X
 xmodmap ~/.pndXmodmap
 
+#Write the current user into /tmp/currentuser for any scripts or programs who want to make use of it
+whoami > /tmp/currentuser
+
 # HUP pndnotifyd to make sure it picks up the users home.
 killall -1 pndnotifyd &