[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Dot files, get them out of the way

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
-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



Reply to: