Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
what can I do to make some command start
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
xmwxd
n00b
n00b


Joined: 17 Sep 2004
Posts: 64

PostPosted: Wed Dec 29, 2004 5:21 pm    Post subject: what can I do to make some command start Reply with quote

when I choose enlightenment in gdm
I can enter enlightenment
but I want some command start when I enter it
such as numlockx
what can I do ?
it can not work when I add "exec numlockx" in ~/.xsession
need help!
Back to top
View user's profile Send private message
papal_authority
Veteran
Veteran


Joined: 31 Mar 2004
Posts: 1823
Location: Canada

PostPosted: Wed Dec 29, 2004 5:39 pm    Post subject: Reply with quote

Can you edit the enlightenment desktop file in /usr/share/xsessions/ and add the line numlockx &?
_________________
The free market gave me gonorrhea.
Back to top
View user's profile Send private message
xmwxd
n00b
n00b


Joined: 17 Sep 2004
Posts: 64

PostPosted: Thu Dec 30, 2004 4:05 am    Post subject: Reply with quote

papal_authority wrote:
Can you edit the enlightenment desktop file in /usr/share/xsessions/ and add the line numlockx &?

this is my enlightenment.desktop
code wrote:
[Desktop Entry]
Encoding=UTF-8
Name=Enlightenment
Comment=This session logs you into Enlightenment
Exec=enlightenment -theme winter

TryExec=
# no icon yet, only the top three are currently used
Icon=
Type=Application

how can I add the line ?
please give me an example ,thanks
Back to top
View user's profile Send private message
papal_authority
Veteran
Veteran


Joined: 31 Mar 2004
Posts: 1823
Location: Canada

PostPosted: Thu Dec 30, 2004 5:02 am    Post subject: Reply with quote

Well admittedly I haven't used GDM for a year or so. You could try:
Code:
Exec=numlockx &; enlightenment -theme winter

Although I have no idea if it would work. I'd probably make a script called /usr/bin/startenlightenment like this:
(Don't forget to chmod 0755 /usr/bin/startenlightenment)
Code:
#!/bin/sh
numlockx &
enlightenment -theme winter

and then use:
Code:
Exec=/usr/bin/startenlightenment

I hated GDM when I tried it and went back to XDM for precisely these kinds of reasons.
_________________
The free market gave me gonorrhea.
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