[SOLVED] Running programs in background with Fluxbox
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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 am fairly new to Linux, in general (I do have a little experience). My buddy gave me one of his old crappy dell desktops that was running Windows XP and I decided to make an emulator box out of it. I wanted it to be lightweight, software-wise and have more customizeable gui. So after looking into it, I decided to install Debian (upgraded to Sid) + Fluxbox. I wanted the emulator box to to controlled by a gamepad so I installed Antimicro (keymapping software) to allow me to use the joystick on the gamepad in place of a mouse. I even modified the Fluxbox startup file to run
Code:
antimicro &
at startup (which works fine), however it maximizes by default, on startup and covers the screen everytime. For aesthetics, what would I need to so to make the program run in the background, automatically whenever I start Fluxbox?
tl;dr How can I make a program in X start automatically and then hide itself while continuing to run?
I think what you are looking for is a way to minimize the application window once the application was started, which cannot be achieved by appending the &
I haven't used fluxbox in a while, but I recall there is a handy feature called fluxbox-remote:
It first has to be enabled (it's disabled by default because it might have some security implications when working over the network, but from what you described it did not sound this would affect you).
I used this to restart fluxbox after xrandr commands that messed up the display, but it would not surprise me if you could also minimize windows with this... might be worth a try.
That link is actually how I learned how to edit the Fluxbox startup file to run the program. Unfortunately, I still could find nothing on minimizing programs
You can either edit ~/.fluxbox/apps to accomplish your goal, or, from within fluxbox minimize your app, right click on the app in the taskbar>remember>select both minimized and save on close...make sure app remains minimized, and close it from within the taskbar.
For an idea of how /.fluxbox/apps works, you can $man fluxbox-apps, and/or have a look at the file before and after you do it through the gui.
I think what you are looking for is a way to minimize the application window once the application was started
Quote:
Originally Posted by mrclisdue
You can either edit ~/.fluxbox/apps to accomplish your goal, or, from within fluxbox minimize your app, right click on the app in the taskbar>remember>select both minimized and save on close...make sure app remains minimized, and close it from within the taskbar.
For an idea of how /.fluxbox/apps works, you can $man fluxbox-apps, and/or have a look at the file before and after you do it through the gui.
cheers,
Sadly, if I fully minimize the program (as opposed to just letting it run behind other programs), it disables the use of gamepad to control the cursor. Maybe I can set the program to auto start, but just in a different workspace!
SOLVED: I ended up learning basic bash scripting and made a script that sends all processes to the background. Then I edited the Fluxbox startup file to run that script
[EDIT]: Much thanks to all of you again, for all of your suggestions!!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.