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 Sun 26 Oct 2014, 00:09
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 Posts_count  
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:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0504s ][ Queries: 11 (0.0075s) ][ GZIP on ]