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.

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 on other sites
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/bashps aux | grep iDesk | awk {'print \$2'} | xargs killexit 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 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 on other sites
Quote:
 Original post by 255The 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 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.

1. 1
2. 2
Rutin
24
3. 3
4. 4
JoeJ
16
5. 5

• 14
• 29
• 11
• 11
• 9
• Forum Statistics

• Total Topics
631773
• Total Posts
3002271
×