LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   xinitrc in libranet? how do i execute a command on x startup? (https://www.linuxquestions.org/questions/linux-software-2/xinitrc-in-libranet-how-do-i-execute-a-command-on-x-startup-265400/)

bleargh 12-11-2004 09:29 PM

xinitrc in libranet? how do i execute a command on x startup?
 
how do i execute a command on startup of X from the graphical GDM login?

I've tried adding it to my personal ~/.xinitrc and to the global /etc/X11/xinit/xinitrc, .xsession, but Libranet seems to ignore them. I want to add xmodmap and imwheel lines to execute when x starts, preferably for all users and all WMs, and load a module and mounts at startup.

The .bashrc is fine for a kludge, but only works for commands that can be done over and over again, because it does them every time I start bash. So if i want to change my sound settings, they are reset when I open a konsole.

I found a slightly better solution, of creating a startup.sh script in my ~/.kde/Autostart directory, so that it starts when KDE starts, but not for other WMs, and I don't know how to load a module with it.

shanenin 12-11-2004 10:27 PM

I use gdm for a login manager instead of kdm like you. With gmd you need to choose custom login, then it will source my .xsession file. If I do not choose custom login it will ignore my .xsession file At the kdm login screan choose custom login, assuming it has that option. Below is what I have in my .xsession if you care to look.

Code:

#!/bin/bash
/usr/bin/xvattr -a XV_COLORKEY -v 0 &
/usr/bin/freevo &
exec blackbox


bleargh 12-11-2004 10:30 PM

Quote:

Originally posted by shanenin
With gmd you need to choose custom login, then it will source my .xsession file.
what does that mean? :-)

also, how would i switch to kdm? (since i use kde all the time and gnome never)

shanenin 12-11-2004 10:36 PM

sorry that was kind of unclear. When you are at your login screen for kdm(kde), you should be able to choose what session you want. There might be an option for custom session, among other window managers.

bleargh 12-11-2004 10:43 PM

well I am using GDM. i can select which session i want, like a KDE session or a fluxbox session. that doesn't have anything to do with xsession i don't think.

shanenin 12-11-2004 10:56 PM

are you sure that "custom" session is not available?

bleargh 12-11-2004 11:00 PM

Quote:

Originally posted by shanenin
are you sure that "custom" session is not available?
yes. this is a libranet installation, so it might be weird compared to others.


All times are GMT -5. The time now is 02:45 AM.