Register a domain and help support LQ
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 10-15-2005, 02:32 PM   #1
Registered: Aug 2005
Distribution: Gentoo
Posts: 228

Rep: Reputation: 31
Starting Xterm in X through GDM

I'm running GDM and having OpenBox start up as my window manager, the problem I'm running in to is I can't figure out how to automatically start programs along with OpenBox.

I've found plenty of resources through Google that point towards ~/.xsession, but I've had absolutely no luck with it. Right now, I'm looking into /etc/X11/xinit/ and I've tried, as described in another thread, starting with /etc/X11/xinit/xinitrc, /etc/X11/xinit/xinitrc.openbox, /etc/X11/xinit/xinitrc.d/xinitrc (this is what the .../gdm/Xsession file looks at to execute scripts). I'm just having no luck starting anything.

I put ` exec xterm ` in the /etc/X11/gdm/Init/Default file, which started xterm in GDM but that doesn't much help me. I've tried and Googled for a couple hours now and I'm just not finding anything that is working out, any help would be greatly appreciated.

I'm running Gentoo, OpenBox, GDM (version and just want to start programs up along with OpenBox, thanks in advanced!
Old 10-15-2005, 02:37 PM   #2
Registered: Aug 2005
Distribution: Gentoo
Posts: 228

Original Poster
Rep: Reputation: 31
if [ -d /etc/X11/xinit/xinitrc.d ]; then
    for i in /etc/X11/xinit/xinitrc.d/* ; do
        if [ -x "$i" ]; then
	    . "$i"
is in the /etc/X11/gdm/Xsession file, and I just happened to notice the -x permission check, I gave the login user permissions to the file and it worked out nicely. Hope this can be of some use to others, it had me running in circles for a long while.


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Starting up KDM instead of GDM? vbraun Fedora 9 01-19-2007 11:14 AM
Problems starting GDM REHead Debian 7 09-04-2005 11:35 AM
Starting gdm instead of shell login calcon Slackware 1 04-10-2005 10:17 AM
typing gdm, starting kde javb Linux - Newbie 2 03-10-2005 10:55 AM
gdm fails to finish starting, why? mark_umr Linux - General 1 12-19-2002 11:43 PM

All times are GMT -5. The time now is 04:37 PM.

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