Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 29 Jul 2014, 06:51
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
How can I auto-start MUT at boot?
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [6 Posts]  
Author Message
dvw86


Joined: 04 May 2005
Posts: 636
Location: Washington State

PostPosted: Thu 14 Jul 2005, 11:44    Post subject:  How can I auto-start MUT at boot?  

Okay I feel silly for asking this, but I just can't figure it out. I would like to get MUT to auto start at boot up. I have tried placing the start up script in /root/.xinitrc after the line:

Code:
CURRENTWM="`cat /etc/windowmanager`"
exec $CURRENTWM


I also tried putting the start up script in /root/.icewm/startup The funny thing is that clicking on /root/.icewm/startup will start MUT. IceWM is my default window manager by the way.

Placing the start up sript in /etc/rc.d/rc.local doesn't work either. Anyone have any ideas?
Back to top
View user's profile Send private message 
GuestToo
Puppy Master

Joined: 04 May 2005
Posts: 4078

PostPosted: Thu 14 Jul 2005, 16:27    Post subject:  

exec $CURRENTWM transfers out of .xinitrc (in your case to icewm) and never comes back, so any lines you put after the exec command will never be executed

what you would do is run mut before the exec command, as a background process (with an ampersand) ... something like:

path-to-mut &
exec $CURRENTWM

mut won't run from rc.local because mut is an X program, and X hasn't started yet

when .xinitrc is executing, X has started and is running ... in fact, you can start and run any X programs without starting a window manager lik fvwm95 or icewm (you just won't be able to move the windows around, there will be no title bars or task bars or menu)

the icewm-session binary automatically starts icewmbg, icewmtray, icewm, and also runs ~/.icewm/startup ... i didn't include icewm-session in my dotpup package, i wrote a script called icewm-session2 that does about the same thing, but doesn't stay in memory ... icewm-session2 does not run ~/.icewm/startup though

you can add a line to execute the startup script something like this:

. /root/.icewm/startup
exec icewm

or you could add a line to start mut, something like:

path-to-mut &
exec icewm

but if you put it in .xinitrc, it will run mut with fvwm95 and jwm too
Back to top
View user's profile Send private message 
dvw86


Joined: 04 May 2005
Posts: 636
Location: Washington State

PostPosted: Thu 14 Jul 2005, 17:59    Post subject:  

Thanks for that great explination. I will give it a try and let you know how it goes.
Back to top
View user's profile Send private message 
dvw86


Joined: 04 May 2005
Posts: 636
Location: Washington State

PostPosted: Thu 14 Jul 2005, 18:09    Post subject:  

Putting it in .xinitrc like you said worked. Now how do I get it to default to the "tray icon" like xtmix does in Fvwm95?
Back to top
View user's profile Send private message 
GuestToo
Puppy Master

Joined: 04 May 2005
Posts: 4078

PostPosted: Thu 14 Jul 2005, 18:45    Post subject:  

try putting:

mut.tcl.icon: mini-diskette
mut.tcl.tray: 1

in /root/.icewm/winoptions

you may need to restart icewm (in the logout menu) for it to take effect

or you might prefer:

mut.tcl.icon: mini-diskette
mut.tcl.tray: Exclusive

some tips: http://gentoo-wiki.com/HOWTO_IceWM
Back to top
View user's profile Send private message 
dvw86


Joined: 04 May 2005
Posts: 636
Location: Washington State

PostPosted: Sun 17 Jul 2005, 20:00    Post subject:  

Thanks GuestToo for your help. I made a Rox-App to help simplify this in the future.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [6 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
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
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0476s ][ Queries: 12 (0.0042s) ][ GZIP on ]