Linux Format forums Forum Index Linux Format forums
Help, discussion, magazine feedback and more
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

IceWM and the little black window startup problem

 
Post new topic   Reply to topic    Linux Format forums Forum Index -> Hints and tips
View previous topic :: View next topic  
Author Message
Farcry



Joined: Thu Jul 19, 2007 12:24 am
Posts: 24

PostPosted: Wed May 18, 2011 10:43 pm    Post subject: IceWM and the little black window startup problem Reply with quote

Firstly, I'm ashamed to say it has taken me since LXF 103 to pursue Mike Saunders's strong recommendation to try IceWM. But he's so right and it is a cracking little window manager (even doing tiling as well!).

Next, there is one irritating problem with IceWM which does seem to be a timing/race bug (in icewmtray?) going back ages (eg see http://sourceforge.net/tracker/index.php?func=detail&aid=1878118&group_id=31&atid=100031). It's also been reported in the Arch Linux forums at https://bbs.archlinux.org/viewtopic.php?id=65608 and https://bbs.archlinux.org/viewtopic.php?id=78459.

What happens is that every so often the programs in the startup file get loaded, but their icons don't appear in the system tray. Instead a little indestructible black window appears. On restarting X, it always seems to correct itself. (For me it seems to happen after a power-on.)

The solution from the second Arch thread above is to put a "sleep 1" before every command in the startup file which puts an icon in the system tray. For example:
Code:

sleep 1; parcellite &
sleep 1; xpad -N &
sleep 1; nm-applet --sm-disable &
sleep 1; trayclock &
sleep 1; conky &


However, I've actually found it better to create an additional script (say, called sleepy) and call it at the end of startup thus:
Code:
sleep 4 && ${0%/*}/sleepy &

Every program that puts an icon in the system tray is called in sleepy, without any other sleeps being required.

Hope this might help someone else who is frustrated by such a silly problem in an otherwise excellent piece of software.
Mike - have you encountered this and come up with a better solution?!
Wink
Back to top
View user's profile Send private message
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    Linux Format forums Forum Index -> Hints and tips 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
Linux Format forums topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group


Copyright 2011 Future Publishing, all rights reserved.


Web hosting by UKFast