Question about xterm session $HOME

 
Thread Tools Search this Thread
Top Forums UNIX for Beginners Questions & Answers Question about xterm session $HOME
# 1  
Old 01-31-2017
Question about xterm session $HOME

Hello and thanks in advance for any assistance anyone can offer me

The fast & dirty question is... Could someone please tell me which file would open an xterm session into $HOME/Desktop instead of /$HOME?

The longer version is.... I was reading about login scripts when I noticed my SSH sessions logged into $HOME while my xterm session on the console logged into /$HOME/Desktop. Initially I figured I'd find something in either the /$HOME/.bashrc, /etc/bashrc, or /etc/profile to explain it.... Which I didn't find. I figured it must be specific to something xterm is doing so I looked through .xinitrc but didn't have any luck there either. I've spent half the day trying to figure out what puts an xterm session into /$HOME/Desktop but I'm having zero luck and my OCD is going crazy about it.

I'm on Centos 7 3.10.0-327.18.2.el7.x86_64 running as a Virtualbox 5.1 guest.


Thanks!
# 2  
Old 02-01-2017
You could first check /etc/passwd for the user's login directory, which I guess is where the ssh session will start from. xterm should as well unless told otherwise by some resource file like e.g. /etc/X11/app-defaults/XTerm.
This User Gave Thanks to RudiC For This Post:
# 3  
Old 02-16-2017
Thanks for the reply!!

After digging around for a couple days I found a website that said Gnome 3 is implemented improperly on Centos/Fedora machines. I balked at the thought but that's the only thing I could find that specified the problem. I did find a tool that can be used to fix it but I forget the name. I have it written down somewhere.

Anyway... Thanks for taking the time to read my question and reply!
# 4  
Old 02-17-2017
The parent process may have its current working directory in $HOME/Desktop. Are you opening an xterm icon on the desktop? Perhaps you can edit that icon and change the starting folder of xterm?

Andrew
This User Gave Thanks to apmcd47 For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Solaris

Difference between the desktop session and console session

what is the difference between desktop session and console session in solaris as i am wondering we use option -text for the former and -nowin for the later (1 Reply)
Discussion started by: kishanreddy
1 Replies

2. Shell Programming and Scripting

[BASH] xclock/xcalc/xterm...process question?

I have no idea how to do this: Let's say the user opens an "xclock &" in one of my scripts and I don't want him to be able to re-open one with the script. How could I test that? Possibly with a message saying that "The <xclock(or w/e other process like xcalc)> is already running in the... (3 Replies)
Discussion started by: Yakuzan
3 Replies

3. Solaris

I am not able to login in gnome session and java session in Sun solaris 9& 10

I am not able to login in gnome session and java session in Sun solaris 9& 10 respectively through xmanager as a nis user, I am able to login in common desktop , but gnome session its not allowing , when I have given login credentials, its coming back to login screen, what shoul I do to allow nis... (0 Replies)
Discussion started by: durgaprasadr13
0 Replies

4. UNIX for Dummies Questions & Answers

/export/home question

please could someone explain what is /export/home used for ? (1 Reply)
Discussion started by: venhart
1 Replies

5. UNIX for Dummies Questions & Answers

home directory & group in UNIX question

folks; I'm going to use LDAP on Solaris 10 to authenticate users, i have 3 questions, i'm hoping it can be possible: 1. when users login for the first time, Is there a way to auto create a home directory like "/home/"user_name" so we don't have to a create a home directory for every single... (3 Replies)
Discussion started by: Katkota
3 Replies

6. UNIX for Dummies Questions & Answers

How to rename Xterm terminal in VNC session

Hi All, We are using VNC viewer to login to remote server. Remote server is running with Red Hat linux 3.0. Our problem is, we are unable to rename xterm terminal so is there any way we can rename? Thanks a lot in advance for your valuable inputs. Regards, Bachegowda (0 Replies)
Discussion started by: bache_gowda
0 Replies

7. Shell Programming and Scripting

sqlplus session being able to see unix variables session within a script

Hi there. How do I make the DB connection see the parameter variables passed to the unix script ? The code snippet below isn't working properly. sqlplus << EOF user1@db1/pass1 BEGIN PACKAGE1.perform_updates($1,$2,$3); END; EOF Thanks in advance, Abrahao. (2 Replies)
Discussion started by: 435 Gavea
2 Replies

8. Linux

xterm font colors - configuration question?

When I telnet (ssh) over to my Fedora system, I find the colors horrible. For instance, regular files are white text, which is fine, but directories show up as dark blue which is virtually invisible against the black background). Additionally, when using vi, I find the colors great doing perl... (3 Replies)
Discussion started by: ripley
3 Replies
Login or Register to Ask a Question