LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 12-11-2004, 09:29 PM   #1
bleargh
Member
 
Registered: Jul 2004
Location: New York, NY
Distribution: Ubuntu
Posts: 67

Rep: Reputation: 16
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.
 
Old 12-11-2004, 10:27 PM   #2
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Rep: Reputation: 30
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
 
Old 12-11-2004, 10:30 PM   #3
bleargh
Member
 
Registered: Jul 2004
Location: New York, NY
Distribution: Ubuntu
Posts: 67

Original Poster
Rep: Reputation: 16
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)

Last edited by bleargh; 12-11-2004 at 10:31 PM.
 
Old 12-11-2004, 10:36 PM   #4
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Rep: Reputation: 30
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.
 
Old 12-11-2004, 10:43 PM   #5
bleargh
Member
 
Registered: Jul 2004
Location: New York, NY
Distribution: Ubuntu
Posts: 67

Original Poster
Rep: Reputation: 16
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.
 
Old 12-11-2004, 10:56 PM   #6
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Rep: Reputation: 30
are you sure that "custom" session is not available?
 
Old 12-11-2004, 11:00 PM   #7
bleargh
Member
 
Registered: Jul 2004
Location: New York, NY
Distribution: Ubuntu
Posts: 67

Original Poster
Rep: Reputation: 16
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.
 
  


Reply


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Am i supposed to edit xinitrc to run a command at startup? Tyir Linux - General 36 12-05-2007 12:57 PM
xinitrc won't execute xmodmap! carboncopy Slackware 1 03-17-2004 03:26 AM
x startup .xinitrc Longinus Linux - Newbie 1 02-20-2004 04:01 AM
.xinitrc programs start twice on startup fasmaie Linux - Newbie 0 09-09-2003 03:59 PM
execute mount (or any) command on startup frieza Linux - Software 3 04-29-2003 06:09 PM


All times are GMT -5. The time now is 01:04 AM.

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