Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 179813 - ksmserver + autostart program = n proceses running
Summary: ksmserver + autostart program = n proceses running
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-25 22:06 UTC by Miguel Angel Requena Serrano
Modified: 2007-05-25 22:35 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Miguel Angel Requena Serrano 2007-05-25 22:06:42 UTC
sorry for bad english

well the thing is:

i see that you can have an animated wallpaper using this
xwinwrap -o 0.1 -ni -argb -fs -s -st -sp -b -nf -- /usr/lib/misc/xscreensaver/glmatrix -root -window-id WID

so i put this script in ~/.kde/Autostart/

#!/bin/bash
xwinwrap -o 0.1 -ni -argb -fs -s -st -sp -b -nf -- /usr/lib/misc/xscreensaver/glmatrix -root -window-id WID

well the first time i reset i have one process xwinwrap and one named as the script and other as the screensaver.

but processes grow whith every logout or reset.

i know that it is because sometimes
ksmserver remember xwinwrap as previus sesion and launch one and in the autostart is lanched i have two, next time three and up

so the cuestion ¿there are any form i can configure ksmserver to ignore certain apps, so resuming session but no the app i want?

when time passes xwinwrap can slow the machine to infinite because there are too much proceses running xwinwrap and glmatrix ... so it real can kill your machine

Reproducible: Always

Steps to Reproduce:
1.put this in .kde/autostart/your-script
#!/bin/bash
xwinwrap -o 0.1 -ni -argb -fs -s -st -sp -b -nf -- /usr/lib/misc/xscreensaver/glmatrix -root -window-id WID

2.logoff from kde
3.login kde
4.notice that there are more than one xwinwrap

of course you need to install xwinwrap and xscreensaver but you can use every screen saver you can for putting on the background, maybe you need to use beryl 
ie not tested on a non beryl machine. but if you use a autostart script that runs in background and cannot be closed you have the same trouble

Actual Results:  
duplicated processes for doing the same

Expected Results:  
only one proces must be autostarted but more than one

especify a maner for ignoring autostart scripts from restoring saved sessions
Comment 1 Jorge Manuel B. S. Vicetto (RETIRED) gentoo-dev 2007-05-25 22:35:09 UTC
Miguel,

this is not a bug. All scripts on the autostart dir will be executed on each new session - thus leading to a new version of xwinwrap to be launched. This is the expected behaviour.
You should instead add the xwinwrap command to /usr/kde/3.5/share/config/kdm/Xstartup so that it starts before the session manager.