I'm using Linux Mint and I've got a tablet driver and a VPN that automatically open their respective windows when they start up. This is a bit annoying because I prefer them to run in the background without popping up. I can handle commands to run on startup, but I need some help figuring out the right commands to use for closing these windows, so I don't have to take the time to close them manually each time.
4 Answers
You can customize the startup command for your applications. Look in the Startup Applications settings, click on your VPN or driver, and use a command that includes options to not show the window. If none are available, you could create a script that closes the window after a brief pause. Begin your script with `#!/bin/bash` to ensure it runs correctly.
You can also try launching the commands with an `&` so they run in the background, which might stop them from displaying the windows right away.
Before going down that path, check if the VPN and tablet driver have options to run without opening a window. That could save you the hassle altogether! They might not need to display any interface at startup.
One approach is to add a delay and use the `wmctrl` command. You can try something like `sleep 5 && wmctrl -c "window_name"` to close the specific windows after they’ve had a moment to open.

Related Questions
Can't Load PhpMyadmin On After Server Update
Redirect www to non-www in Apache Conf
How To Check If Your SSL Cert Is SHA 1
Windows TrackPad Gestures