ArchThis Forum is for the discussion of Arch Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I run Pekwm as my primary window manager and I use a simple script that uses feh to change the wallpaper every 10 minutes. When I log out, the script keeps on running. If I log out and log in again several times there are several instances of the script running. I can, of course, kill them with a killall command, but is there a way to stop the script when I leave Xorg automatically. Pekwm has a "start" file where you can start apps and scripts at startup, but it doesn't have a "shutdown" file that you can run when you log out.
I found a solution. I run another script along with it that tests if Xorg is running. If not, it kills the other script. Maybe not the best solution, but it works.
user processes started under gui should be terminated when the gui exits, unless specified otherwise.
how are you starting the feh command/script?
can you show us the pekwm autostart file and the feh script?
how do you start pekwm?
so do you really like that look that feh gives you on your background images? I wrote a program that gives the user a lot more control over the images and colors due to feh's, because of the lack of giving that same control when setting an image to the background when using feh. just one line startup, and it shuts down upon exit of xorg, gives the ability to set image size and colors, tiles, and randomizes everything if one wants to, and more. it's a lot nicer than feh and easier to run then all of what you had to write to get feh to do this. its all self contained within the program.
that's strange.
i'm pretty sure under openbox this would get terminated when i exit openbox.
i will try some testing to verify (also using arch).
you could try to start the wallpaperchanger from a .desktop file in an XDG autostart directory instead, e.g. ~/.config/autostart/something.desktop
how do you start pekwm? display manager or startx and ~/.xinitrc?
if the latter, you could also try to put the wallpaper script in .xinitrc, maybe it will be treated differently.
I start it from slim display manager which uses .xinitrc
please see this: https://wiki.archlinux.org/index.php/Slim
i'm pretty sure the fact that slim is abandoned & does not fully support systemd, has something to do with your problem.
if you think you are using a valid version of slim (maybe somebody is working on it?), you can continue the troubleshooting as outlined previously.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.