Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Where is the standard Gnome .Xclients file?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
hnaparst
Apprentice
Apprentice


Joined: 27 Jul 2005
Posts: 215
Location: Hertfordshire, UK

PostPosted: Sun Oct 28, 2012 8:39 am    Post subject: Where is the standard Gnome .Xclients file? Reply with quote

So when I was setting up Gnome on a new box, the installation got a bit messed up. Gnome complained upon login that there wasn't an .Xclients file. I haven't ever needed to create one before, but I thought "Why not try?"

So now I have an .Xclients file in my home directory:

Code:
metacity &
gnome-panel &
nautilus &
xterm


This took a while for me to figure out. For a while I had no window manager, so I added metacity. Then the problem was no menu panel, so I added gnome-panel. Then the problem was no right-click menu, desktop background and file manager, so I added nautilus. Now things are starting to look pretty good.

The problem now is that the log out option in the menus doesn't work. Neither does lockscreen. So two questions:

1. If I elect to continue to build my own .Xclients file, what should I add to it to get the logout option to work?

2. What happened to the normal .Xclients file that Gentoo normally installs? Alternatively, how do I get it back?

3. A bit of theory about the .Xclients file. I thought the way it worked was that it executes the commands in the file and when the last command exits, you are logged off. Notice the xterm (without putting it in background). Now when I exit that particular xterm, the system logs me out. Is that correct? How is it supposed to work?

Cheers.
_________________
Harold Naparst
Back to top
View user's profile Send private message
keenblade
Veteran
Veteran


Joined: 03 Oct 2004
Posts: 1085

PostPosted: Sun Oct 28, 2012 12:34 pm    Post subject: Reply with quote

Last time I checked, .Xclients file is just a symlink to .xinitrc. Same thing for the .Xdefaults is a symlink to .Xresources.
After creating the symlinks, you shoud edit your .xinitrc. I believe gdm and kdm ignores that file.
If you don't use a graphical login manager, you can define your WM and progs that you want to start when computer starts.
Just google for .xinitrc and you'll find lots of info.
_________________
Anyway it's all the same at the end...
Need help to get it working: "x-fi surround 5.1"
Back to top
View user's profile Send private message
hnaparst
Apprentice
Apprentice


Joined: 27 Jul 2005
Posts: 215
Location: Hertfordshire, UK

PostPosted: Sun Oct 28, 2012 12:39 pm    Post subject: Reply with quote

Actually, I use gdm.

The contents of my .xinitrc is

Code:
exec gnome-session
export XDG_MENU_PREFIX=gnome-


Does this change your advice? Where did the standard setup for gnome go? Where do they live?
_________________
Harold Naparst
Back to top
View user's profile Send private message
keenblade
Veteran
Veteran


Joined: 03 Oct 2004
Posts: 1085

PostPosted: Sun Oct 28, 2012 5:50 pm    Post subject: Reply with quote

If you will use gdm login manager, forget .xinitrc. Gdm does not honour that file. You should just edit /etc/conf.d/xdm like this:
Code:

DISPLAYMANAGER="gdm"

and then add the xdm init script to the default runlevel:
Code:

rc-update add xdm default

Now you can reboot, and gdm will greet you. You can configure it from the greeting screen.
_________________
Anyway it's all the same at the end...
Need help to get it working: "x-fi surround 5.1"
Back to top
View user's profile Send private message
hnaparst
Apprentice
Apprentice


Joined: 27 Jul 2005
Posts: 215
Location: Hertfordshire, UK

PostPosted: Sun Oct 28, 2012 6:12 pm    Post subject: Reply with quote

I have done all that, and I do get greeted.

The problems come after I log in at the gdm prompt. That is when the desktop doesn't get set up correctly.
_________________
Harold Naparst
Back to top
View user's profile Send private message
keenblade
Veteran
Veteran


Joined: 03 Oct 2004
Posts: 1085

PostPosted: Sun Oct 28, 2012 7:28 pm    Post subject: Reply with quote

Have you tried another login manager? I use kdm with cinnamon, since gdm stop working properly long time ago for me. You can try kdm, slim, lightdm.
_________________
Anyway it's all the same at the end...
Need help to get it working: "x-fi surround 5.1"
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum