LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Starting Xterm in X through GDM (https://www.linuxquestions.org/questions/linux-general-1/starting-xterm-in-x-through-gdm-373388/)

flower.Hercules 10-15-2005 02:32 PM

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 2.6.0.4-r1) and just want to start programs up along with OpenBox, thanks in advanced!

flower.Hercules 10-15-2005 02:37 PM

Code:

if [ -d /etc/X11/xinit/xinitrc.d ]; then
    for i in /etc/X11/xinit/xinitrc.d/* ; do
        if [ -x "$i" ]; then
            . "$i"
        fi
    done
fi

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.


All times are GMT -5. The time now is 11:49 PM.