View previous topic :: View next topic |
Author |
Message |
david666 n00b
Joined: 23 Mar 2006 Posts: 5
|
Posted: Fri Mar 24, 2006 1:15 pm Post subject: gdm DOES NOT execute ~/.xinitrc nor ~/.xsession |
|
|
/etc/rc.conf
DISPLAYMANAGER="gdm"
SESSION="Gnome"
~/.xinitrc
exec xmodmap -e "pointer = 1 2 3 6 7 4 5" &
exec imwheel -k -b "67" &
exec numlockx &
exec gnome-session
When I use gdm to login my numlock isn't enable nor does my mouse scroll work.
HOW CAN I TELL gdm TO EXECUTE ~/.xinitrc WHEN I LOGIN? |
|
Back to top |
|
|
Ferdinando Veteran
Joined: 25 Nov 2003 Posts: 1027 Location: Gaeta (LT) - Italy
|
Posted: Fri Mar 24, 2006 4:20 pm Post subject: |
|
|
It isn't supposed to: just imagine if you had (like me) twm in .xinitrc and then open a gnome session from gdm. If it did load .xinitrc it would be a disaster, since it would try to run two wm simultaneously.
Kde has two way of starting applications at the start of the session, one system-wide and one per-user: if you're using Gnome, just see what it's got, there's surely a similar way.
Bye _________________ La risposta, non la devi cercare fuori, la devi cercare dentro di te: e però è SBAGLIATA!
-- Corrado Guzzanti, "Pippo Chennedy Show", 1997 |
|
Back to top |
|
|
juniper l33t
Joined: 22 Oct 2004 Posts: 953 Location: we the north
|
Posted: Fri Mar 24, 2006 7:39 pm Post subject: |
|
|
there are files that gdm execute on login in /etc/X11/gdm. there are files there called Presession, Postlogin etc. they do what you think.
other than that, you can make a script for your stuff and it to gnome's start up session.
preferences -> sessions.
j |
|
Back to top |
|
|
cram Guru
Joined: 17 Nov 2002 Posts: 312 Location: Saskatoon, Canada
|
Posted: Fri Mar 24, 2006 8:21 pm Post subject: |
|
|
Quote: | exec xmodmap -e "pointer = 1 2 3 6 7 4 5" &
exec imwheel -k -b "67" &
exec numlockx &
exec gnome-session |
If if you do get it reading your .xinitrc, or move these commands to another file, it won't work as written.
When you exec a program it won't return to the script, so the file above would run imwheel and never see any of the other commands. _________________ aaarggghhhh.
Good point Chewie. |
|
Back to top |
|
|
donmartio Apprentice
Joined: 11 Dec 2004 Posts: 261
|
Posted: Mon Mar 27, 2006 12:27 pm Post subject: |
|
|
Hey Ferdinando,
i have a similar problem here (as posted here: https://forums.gentoo.org/viewtopic-t-446170-highlight-kde+xinitrc.html )
now my question is, what is the way in kde, to start applications at the start of the session per user?
Any help appreciated.
Greetings
DonMartio _________________ Always code as if the person who ends up maintaining your code will be a violent psychopath who knows where you live. |
|
Back to top |
|
|
Ferdinando Veteran
Joined: 25 Nov 2003 Posts: 1027 Location: Gaeta (LT) - Italy
|
Posted: Mon Mar 27, 2006 12:43 pm Post subject: |
|
|
donmartio wrote: | what is the way in kde, to start applications at the start of the session per user? |
Afaik you only need to put executable files in ~/.kde/Autostart/ and they'll get started with the user's permissions; but I've never tried that. The system wide dir is /usr/kde/${ver}/env/; it's still executed with the user's permissions, so you can use that too, and basically if there's only one user the two solutions are equivalent.
Bye _________________ La risposta, non la devi cercare fuori, la devi cercare dentro di te: e però è SBAGLIATA!
-- Corrado Guzzanti, "Pippo Chennedy Show", 1997 |
|
Back to top |
|
|
|