Jump to content
  • Advertisement
Sign in to follow this  
guywithknife

terminating program when another program terminates - window manager help

This topic is 4458 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Ok, so I installed fluxbox and configured it nicely the way I want it with keyboard shortcuts and all and everything is running nicely. I installed iDesk, so that I can add a couple of desktop icons to some frequently used programs and thats where the problems start. iDesk itself was easy to configure and is running smoothly. The problem is when I try to exit fluxbox, iDesk stays running, stopping me from being dropped back into gdm. Is there any way I can make iDesk terminate when fluxbox terminates? Or how do you guys do this? If necessary, I'll live without iDesk, but it would be nice to have. Thanks in advance!

Share this post


Link to post
Share on other sites
Advertisement
Why don't you just manually kill the process when you're exitting out of fluxbox? You can make a small shell script to execute this pretty easily. I don't use fluxbox (nor any window manager, for that matter), but I can write it in pseudocode pretty easily (note that you should substitute real commands for what I'm guessing on).

#!/bin/bash
ps aux | grep iDesk | awk {'print $2'} | xargs kill
exit fluxbox

That segment of code, if saved to something like exitflux.sh can easily be run with the command 'bash exitflux.sh' (or even easier, you could add it to your PATH and just type 'exitflush' (the .sh isn't really necessary in the file name, just good for organizational stuff).

Share this post


Link to post
Share on other sites
The fluxbox documentation has an example of an .xinitrc configuration that seems to be similar to what you want. I don't know whether gdm runs the user's .xinitrc though. If it doesn't, you could look up the script file gdm uses to start fluxbox and edit that instead.

Alternatively you can just hit ctrl+alt+backspace to kill the X server and have gdm spawn a new one.

Share this post


Link to post
Share on other sites
Quote:
Original post by 255
The fluxbox documentation has an example of an .xinitrc configuration that seems to be similar to what you want. I don't know whether gdm runs the user's .xinitrc though. If it doesn't, you could look up the script file gdm uses to start fluxbox and edit that instead.

Alternatively you can just hit ctrl+alt+backspace to kill the X server and have gdm spawn a new one.


Oh, I thought that his problem was that when killing x, iDesk remained a running process; however, now that I read this I see that he wasn't killing x, he was just killing fluxbox. What a silly error to miss.

Share this post


Link to post
Share on other sites
Thanks for the help!

It turns out there was an error in my fluxbox configuration.. I only realised it when the above methods didn't help, even though idesk was now terminating and when i stopped running idesk completely and it still wouldn't drop me back into GDM, even though it did before. Deleting the fluxbox configuration directory seems to have fixed it.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!