Is there a way to force a program to run in the background (not getting closed by X button)?

rado84

Well-Known Member
Joined
Feb 25, 2019
Messages
880
Reaction score
724
Credits
5,997
Since reddit's website runs very poorly in a browser (imagine running GTA 5 on a Pentium II CPU - that's how reddit runs in a browser), I searched the Arch repos for an application (ever since I was told about Caprine I found out that people have written desktop clients for quite a few websites) and found a program called Headlines. But it doesn't have the option like Telegram or Discord to get "closed" in the background when you press its X button. If you close it that way, it gets shut down and forgets you're logged in and every time you have to approve access to your profile for that program, which can quickly become annoying.
So I wonder - is there a way to force it to stay running in the background? Maybe by editing its .desktop file?
 


@rado84 :-

The trick we always use in Puppy for this is to add an "&" (or 'ampersand', to give it its proper name) after a space at the end of an app's exec line. It's a well-known *nix trick.


For Chromium-based browsers, there's the

Code:
--silent-launch

...."switch", which will launch the browser in the background at startup. We put a wee script in Puppy's 'Startup' directory, the contents of which are always executed by a script in /etc/init.d at boot time. When you go to launch the browser yourself, it's near enough instantaneous, because it's already running.

Plenty of stuff about this out there on t'internet, TBH.


Mike. ;)
 
You can also use https://old.reddit.com - which is lighter.

I don't have any issues with Reddit, even leaving a tab open constantly. I do use the RES browser extension, for what it's worth. I don't think that lowers resource use.
 



Top