Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: baz on February 22, 2010, 02:37:50 PM

Title: XFCE Bug When Specifying a Custom User
Post by: baz on February 22, 2010, 02:37:50 PM
If you specify a custom user through bootcodes (i.e. user=baz), then install XFCE, then try exiting using the exit icon on the panel (red arrow and door), you will recieve the error:

"Failed to change to directory '/home/tc' (No such file or directory)"


It seems the TC user is hard-coded in the config, or something along those lines.
Title: Re: XFCE Bug When Specifying a Custom User
Post by: baz on February 22, 2010, 04:46:53 PM
In case anyone was curious, the fix is very easy. Simply right-click the icon > properties, then change the "working directory" to your home folder.
Title: Re: XFCE Bug When Specifying a Custom User
Post by: maro on February 22, 2010, 06:17:18 PM
I believe a more permanant fix would be to change in the Xfce4base.tcz extension in the usr/local/share/xfce4/userdefaults/.config/xfce4/panel/launcher-12493865401.rc file the entry Path=/home/tc to Path=/tmp
Title: Re: XFCE Bug When Specifying a Custom User
Post by: gerald_clark on February 22, 2010, 08:07:06 PM
What about PATH=~
Title: Re: XFCE Bug When Specifying a Custom User
Post by: maro on February 23, 2010, 01:00:28 AM
What about PATH=~

Nope, that produces the same error message. I had earlier tried "/tmp/$USER", which also resulted in the error message.
Title: Re: XFCE Bug When Specifying a Custom User
Post by: Kingdomcome on February 23, 2010, 11:52:00 PM
How about PATH=/home/$(cat /etc/sysconfig/tcuser) ?
Title: Re: XFCE Bug When Specifying a Custom User
Post by: maro on February 25, 2010, 01:11:32 AM
I believe it does not matter much which working directory is specified for the execution of 'exittc'. The directory just has to exist, and it appears that variables that a shell uses (e.g. $USER) are not defined.
Title: Re: XFCE Bug When Specifying a Custom User
Post by: bmarkus on February 25, 2010, 01:26:26 AM
I believe it does not matter much which working directory is specified for the execution of 'exittc'. The directory just has to exist, and it appears that variables that a shell uses (e.g. $USER) are not defined.

One more thing to consider.

exittc can create a backup. home/tc is hardcoded in /opt/.filetool.lst