Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gdm DOES NOT execute ~/.xinitrc nor ~/.xsession
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
david666
n00b
n00b


Joined: 23 Mar 2006
Posts: 5

PostPosted: Fri Mar 24, 2006 1:15 pm    Post subject: gdm DOES NOT execute ~/.xinitrc nor ~/.xsession Reply with quote

/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
View user's profile Send private message
Ferdinando
Veteran
Veteran


Joined: 25 Nov 2003
Posts: 1027
Location: Gaeta (LT) - Italy

PostPosted: Fri Mar 24, 2006 4:20 pm    Post subject: Reply with quote

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
View user's profile Send private message
juniper
l33t
l33t


Joined: 22 Oct 2004
Posts: 943
Location: we the north

PostPosted: Fri Mar 24, 2006 7:39 pm    Post subject: Reply with quote

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
View user's profile Send private message
cram
Guru
Guru


Joined: 17 Nov 2002
Posts: 312
Location: Saskatoon, Canada

PostPosted: Fri Mar 24, 2006 8:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
donmartio
Apprentice
Apprentice


Joined: 11 Dec 2004
Posts: 258

PostPosted: Mon Mar 27, 2006 12:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
Ferdinando
Veteran
Veteran


Joined: 25 Nov 2003
Posts: 1027
Location: Gaeta (LT) - Italy

PostPosted: Mon Mar 27, 2006 12:43 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum