LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 02-08-2014, 11:21 AM   #1
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,008

Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
Terminal Emulator Opens in Root (Slackware 14.1 stable, Xfce)


So, for some strange reason, logged in as "me," startx, open Terminal Emulator and it opens as me in root (not in /home/me) -- the log in opens in my home directory.

Huh.

Deleted the launcher, created a new one, same thing.

Huh.

Go on a bug hunt, can't find anything (obvious) in either ~/.cache or ~/.config. Tried other log ins, no problem.

Huh.

OK, past experience with Xfce, delete ~/.cache, stop X, log out, log back in, startx, problem gone.

Huh.

Question is, how the heck does this happen -- Xfce glitch? Me fumble-fingering something? Magic? Only thing I've done different or new is the past 24 hours is use growisofs to burn a couple of DVDs and I can't imagine that caused any problem (never knew there was such a thing as growisofs until yesterday, found out about it after problems with K3b -- don't burn many DVDs as a rule -- thanks to Didier Spaier).

How the heck did this happen?
 
Old 02-08-2014, 01:17 PM   #2
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 2,465
Blog Entries: 3

Rep: Reputation: 183Reputation: 183
this happen to me a long time ago when I did a mirror of one of my slackware systems and moved it was also strange never figured it out either still scratching my head.
 
Old 02-09-2014, 06:39 AM   #3
chemfire
Member
 
Registered: Sep 2012
Posts: 69

Rep: Reputation: Disabled
If you go into "Preferences" for the terminal app and check "Run Command as Login Shell" does the problem go away? If it does it might be something in your xintric or xfce's session manager is changing the current working directory.
 
Old 02-09-2014, 09:02 AM   #4
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,008

Original Poster
Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
I always run the terminal emulator as a login shell, I do a lot of command line and text work and a login shell guarantees my desired environment settings. So, given that, I suppose a login shell didn't make any difference. Too, I don't have ~/.xinitrc files in any of the accounts on the system; I use KornShell exclusively and there is a ~/.kshrc file (that sets a couple of aliases, a ~/.exrc that set modes for vi and a ~/.profile that sets a couple of paths and the like (these files have been in use for at least 15 years with virtually no change made to them from System 3 to System V to Solaris to Slackware).

I did "fix" the problem by blowing away the ~/.cache directory (not much of a fix but prior experience with Xfce taught that removing the cache cleaned up various problems. Quickly. I'm just wondering what the heck caused it in the first place (I have never, ever seen that behavior on any Unix or Linux system since, oh, the early 1980's). It's a concern when I can't figure out how it happened (I looked though the entire shell history of every login account I've used over the past week for some hint and there's nothing there that looks remotely responsible -- and I can't duplicate it either).

Tiz a puzzlement.
 
Old 04-27-2014, 08:06 AM   #5
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,008

Original Poster
Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
As of today, 27 Apr, this has happened again. Open a terminal, I'm in root (the actual root, not root's home). I can cd and I'm in my actual home directory:
Code:
fubar-trona-/: cd
fubar-trona-/home/trona:
Seems like something, somewhere is doing this (no idea what) and I don't want to blow away the ~/.cache directory -- which has been the "fix" -- without chasing down what's causing it.

Looking at /home/trona/.cache/sessions/xfce4-session-fubar:0 I see:
Code:
Client3_RestartCommand=xfdesktop,--display,:0.0,--sm-client-id,28e5fb353-d897-45d3-a898-1f1bfc79b404
Client3_CurrentDirectory=/home/trona                                                                
Client3_Program=xfdesktop                                                                           
Client3_UserId=trona                                                                                
Client3_Priority=35                                                                                 
Client3_RestartStyleHint=2                                                                          
Client4_ClientId=2e503dc1b-25a6-40d1-a319-a0b535e77052                                              
Client4_Hostname=local/fubar                                                                        
Client4_CloneCommand=xfce4-power-manager                                                            
Client4_RestartCommand=xfce4-power-manager,--restart,--sm-client-id,2e503dc1b-25a6-40d1-a319-a0b535e
77052                                                                                               
Client4_CurrentDirectory=/                                                                          
Client4_DesktopFile=/etc/xdg/autostart/xfce4-power-manager.desktop                                  
Client4_Program=xfce4-power-manager
Client4_UserId=trona
Client4_Priority=50
Client4_RestartStyleHint=0
Client5_ClientId=22f9c4fce-f1c6-4db0-b759-59fdb237c2b4
Client5_Hostname=local/fubar
Client5_CloneCommand=/usr/bin/gkrellm
Client5_RestartCommand=/usr/bin/gkrellm,--sm-client-id,22f9c4fce-f1c6-4db0-b759-59fdb237c2b4
Client5_Program=/usr/bin/gkrellm
Client5_UserId=trona
Client5_Priority=50
Client5_RestartStyleHint=0
Client6_ClientId=22f037889-4325-4bda-81dc-bef10796e3d3
Client6_Hostname=local/fubar
Client6_RestartCommand=/usr/bin/kactivitymanagerd,-session,22f037889-4325-4bda-81dc-bef10796e3d3_139
8516307_933134
Client6_Program=/usr/bin/kactivitymanagerd
Client6_UserId=trona
Client6_Priority=50
Client6_RestartStyleHint=0
Client7_ClientId=220f3f7f6-0585-4847-a6ec-6aecd3bce29d
Client7_Hostname=local/fubar
Client7_RestartCommand=/usr/bin/hp-systray,-session,220f3f7f6-0585-4847-a6ec-6aecd3bce29d_1398516307
_934181
Client7_Program=/usr/bin/hp-systray
Client7_UserId=trona
Client7_RestartStyleHint=0
Count=8
LegacyCount=0
Screen0_ActiveWorkspace=0
LastAccess=1398516307
Which makes no sense whatsoever.

Anybody have any ideas (other than blow away ~/.cache)?
 
Old 04-28-2014, 10:32 AM   #6
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,008

Original Poster
Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
Well, I've dug around all over the place trying to identify the cause and have come up empty.

Easy solution: rm -r ~/.cache.

Phooey.
 
Old 04-28-2014, 12:25 PM   #7
Habitual
Senior Member
 
Registered: Jan 2011
Distribution: Slack14_64_Multilib
Posts: 3,076
Blog Entries: 4

Rep: Reputation: 745Reputation: 745Reputation: 745Reputation: 745Reputation: 745Reputation: 745Reputation: 745
Quote:
Originally Posted by tronayne View Post
Well, I've dug around all over the place trying to identify the cause and have come up empty.

Easy solution: rm -r ~/.cache.

Phooey.
Surprising how often that "fixes" stuff.
 
Old 04-28-2014, 04:56 PM   #8
GazL
Senior Member
 
Registered: May 2008
Posts: 3,327

Rep: Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883
Random and unpredictable behaviour/breakage used to be the province of MS Windows. This used to happen to me with KDE apps and the ~/.kde directory, but it's sad to see it spreading to other linux desktop environments as well.

There's something to be said for sticking with a basic window-manager and 'xterm'. You'll probably get labelled a 'Luddite' by the unenlightened, but you never have to deal with nonsense like this.
 
1 members found this post helpful.
Old 04-28-2014, 05:17 PM   #9
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,008

Original Poster
Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
Quote:
Originally Posted by GazL View Post
Random and unpredictable behaviour/breakage used to be the province of MS Windows.
Ah, but it still is.
Quote:
Originally Posted by GazL View Post
This used to happen to me with KDE apps and the ~/.kde directory, but it's sad to see it spreading to other linux desktop environments as well.
Uh, yeah. That's why I abandoned KDE two release or so ago.
Quote:
Originally Posted by GazL View Post
There's something to be said for sticking with a basic window-manager and 'xterm'. You'll probably get labelled a 'Luddite' by the unenlightened, but you never have to deal with nonsense like this.
Naw. Wouldn't go quite that far. Plain ol' xterm? No, thanks, I'll put up with the random breakage, methinks.

Still, gotta wonder what and why, eh?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing default type size in XFCE's terminal emulator (xterm) Turbocapitalist Linux - Desktop 7 06-18-2013 03:07 AM
Which is your fav. terminal emulator under Slackware13+Xfce and why? catkin Slackware 24 09-20-2009 01:12 PM
terminal (xterm) opens in /root directory? glenn69 Linux - Newbie 1 09-23-2008 05:48 AM
Failed to run/usr/bin/x-terminal-emulator as user root hongnguyen70 Linux - Newbie 3 01-23-2008 05:13 PM
Terminal emulator for slackware? hottdogg Slackware 2 10-29-2006 10:08 PM


All times are GMT -5. The time now is 08:33 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration