WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: XFCE Bug When Specifying a Custom User  (Read 2796 times)

Offline baz

  • Full Member
  • ***
  • Posts: 216
XFCE Bug When Specifying a Custom User
« 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.

Offline baz

  • Full Member
  • ***
  • Posts: 216
Re: XFCE Bug When Specifying a Custom User
« Reply #1 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.

Offline maro

  • Hero Member
  • *****
  • Posts: 1228
Re: XFCE Bug When Specifying a Custom User
« Reply #2 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

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: XFCE Bug When Specifying a Custom User
« Reply #3 on: February 22, 2010, 08:07:06 PM »
What about PATH=~

Offline maro

  • Hero Member
  • *****
  • Posts: 1228
Re: XFCE Bug When Specifying a Custom User
« Reply #4 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.

Offline Kingdomcome

  • Sr. Member
  • ****
  • Posts: 286
Re: XFCE Bug When Specifying a Custom User
« Reply #5 on: February 23, 2010, 11:52:00 PM »
How about PATH=/home/$(cat /etc/sysconfig/tcuser) ?

Offline maro

  • Hero Member
  • *****
  • Posts: 1228
Re: XFCE Bug When Specifying a Custom User
« Reply #6 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.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: XFCE Bug When Specifying a Custom User
« Reply #7 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
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."