On Tue, 2013-07-09 at 04:44 -0400, shawn wilson wrote: > You could probably do: > su -l $USER HOME=$HOME/$app $app
Hi Shawn, that's great, thank you very much! I can add this to my next audio session scripts, so no searching for hidden configs anymore, for apps that don't allow to set a path by the app. No backup and restore of /home and copying configs needed for a single song anymore. :) Unfortunately it doesn't work for my Arch Linux as it is :(, I'll test it with Debian later. [rocketmouse@archlinux ~]$ echo $USER $HOME rocketmouse /home/rocketmouse [rocketmouse@archlinux ~]$ su -l $USER HOME=/mnt/music/ gedit Password: -bash: HOME=/mnt/music/: No such file or directory [rocketmouse@archlinux ~]$ ls -ld /mnt/music/ drwxrwx--- 35 rocketmouse 29 4096 Oct 22 2012 /mnt/music/ [rocketmouse@archlinux ~]$ echo $USER $HOME rocketmouse /home/rocketmouse Regards, Ralf Regards, Ralf -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/1373365475.694.6.camel@archlinux