Sponsored Content
Top Forums UNIX for Beginners Questions & Answers Question about xterm session $HOME Post 302990773 by bodisha on Tuesday 31st of January 2017 04:31:40 PM
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!
 

8 More Discussions You Might Find Interesting

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

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

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

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

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

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

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

8. 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
XGetDefault()															     XGetDefault()

Name
  XGetDefault - extract an option value from the resource database.

Synopsis
  char *XGetDefault(display, program, option)
	Display *display;
	char *program;
	char *option;

Arguments
  display  Specifies a connection to an X server; returned from XOpenDisplay().

  program  Specifies  the program name to be looked for in the resource database.  The program name is usually argv[0], the first argument on
	   the UNIX command line.

  option   Specifies the option name or keyword.  Lines containing both the program name and the option name, separated only by a  period  or
	   asterisk, will be matched.

Returns
  The resource value.

Description
  XGetDefault() returns a character string containing the user's default value for the specified program name and option name.	XGetDefault()
  returns NULL if no key can be found that matches option and program.	For a description of the matching rules, see XrmGetResource().

  The strings returned by XGetDefault() are owned by Xlib and should not be modified or freed by the client.

  Lines in the user's resource database look like this:

      xterm.foreground: 	 #c0c0ff
      xterm.geometry:		 =81x28
      xterm.saveLines:		 256
      xterm.font:		 8x13
      xterm.keyMapFile: 	 /usr/black/.keymap
      xterm.activeIcon: 	 on
      xmh.header.font		 9x15

  The portion on the left is known as a key; the portion on the right is the value.  Uppercase or lowercase is important in keys.   The  con-
  vention is to capitalize only the second and successive words in each option, if any.

  Resource  specifications are usually loaded into the XA_RESOURCE_MANAGER property on the root window at login.  If no such property exists,
  a resource file in the user's home directory is loaded.  On a UNIX-based system,  this  file	is  $HOME/.Xdefaults.	After  loading	these
  defaults, XGetDefault() merges additional defaults specified by the XENVIRONMENT environment variable.  If XENVIRONMENT is defined, it con-
  tains a full path name for the additional resource file.  If XENVIRONMENT is not defined, XGetDefault()  looks  for  $HOME/.Xdefaults-name,
  where  name specifies the name of the machine on which the application is running. If length of ".Xdefaults-name" is greater than 255, then
  $HOME/.Xdefaults-IP address is looked for instead, where IP address is the internet address of the host.

  The first invocation of XGetDefault() reads and merges the various resource files into Xlib so that subsequent requests are  fast.   There-
  fore, changes to the resource files from the program will not be felt until the next invocation of the application.

  For more information, see Volume One, Chapter 13, Managing User Preferences.

See Also
  XAutoRepeatOff(), XAutoRepeatOn(), XBell(), XChangeKeyboardControl(), XGetKeyboardControl(), XGetPointerControl().

Xlib - User Preferences 													     XGetDefault()
All times are GMT -4. The time now is 09:31 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy