Wols Lists wrote: > On 01/09/2024 15:24, Dale wrote: >> From that link, it looks like that is done manually. In other words, >> when I start Firefox, I have to add the process to the cgroup by hand. >> Shouldn't there be a way to do it automatically? Like add it to the >> command that runs the program name in the application menu? > > That was that bit about cgexec! I start a whole bunch of programs from > the terminal, including iirc thunderbird and firefox. > > Or I start them by clicking on an icon which fires them up for me. > > So just read up on cgexec (including where to find it - I've just > tried and it's not on my system), then edit the .desktop behind your > icon to start firefox *from* cgexec. > > Then you (presuming you don't start it by typing firefox at the > command line) will just start as normal, the only change being the > icon starts cgexec and uses that to start firefox rather than starting > firefox directly. > > Cheers, > Wol > >
After reading that, my light bulb turned on. The command cgexec is for control group execute. lol I got to do some searching for that now. You gave me a good search term. ;-) I wonder tho, in one of the replies, it says to create a directory in /sys. Don't those get cleared after a reboot? I'm almost certain /proc does but think /sys does too. If so, how does that survive reboots? I may find more info as I search. Dale :-) :-)