When a new instance of the desktop is started, there are several ways to run scripts or applications automagically, e.g. files in ~/autostart. Is there some way to run scripts when the desktop is being closed?
Leslie -- Operating System: Linux Distribution: openSUSE Leap 15.2 x86_64 Desktop Environment: Trinity Qt: 3.5.0 TDE: R14.0.10 tde-config: 1.0
On 2021/05/19 07:28 PM, J Leslie Turriff wrote:
When a new instance of the desktop is started, there are several ways to run scripts or applications automagically, e.g. files in ~/autostart. Is there some way to run scripts when the desktop is being closed?
Hi Leslie, you can use kcmautostart, then you can go to TCC -> TDE Components -> Autostart mamager. You can add a command and select Shutdown to run it on shutdown, although I never tried it.
Cheers Michele
On Wednesday 19 May 2021 06:08:21 am Michele Calgaro via tde-users wrote:
On 2021/05/19 07:28 PM, J Leslie Turriff wrote:
When a new instance of the desktop is started, there are several ways to run scripts or applications automagically, e.g. files in ~/autostart. Is there some way to run scripts when the desktop is being closed?
Hi Leslie, you can use kcmautostart, then you can go to TCC -> TDE Components -> Autostart mamager. You can add a command and select Shutdown to run it on shutdown, although I never tried it.
Is 'kcmautostart' the correct name?
# aptitude search kcmautostart {nothing} # aptitude search autostart {snip} p kcontrol-autostart-trinity - autostart module for the Trinity control center {snip}
I wanted to try things in (play with) 'autostop' too, but never explored it...
Best, Michael
On 2021/05/19 11:44 PM, Michael via tde-users wrote:
On Wednesday 19 May 2021 06:08:21 am Michele Calgaro via tde-users wrote:
On 2021/05/19 07:28 PM, J Leslie Turriff wrote:
When a new instance of the desktop is started, there are several ways to run scripts or applications automagically, e.g. files in ~/autostart. Is there some way to run scripts when the desktop is being closed?
Hi Leslie, you can use kcmautostart, then you can go to TCC -> TDE Components -> Autostart mamager. You can add a command and select Shutdown to run it on shutdown, although I never tried it.
Is 'kcmautostart' the correct name?
# aptitude search kcmautostart {nothing} # aptitude search autostart {snip} p kcontrol-autostart-trinity - autostart module for the Trinity control center {snip}
I wanted to try things in (play with) 'autostop' too, but never explored it...
Best, Michael
Well, in Debian the package is called kcontrol-autostart-trinity-.... but the folder in the repo source is called kcmautostart, hence me remembering that. The TDE module is actually called autostart and you can invoke it with tdecmshell autostart from CLI. Sorry for the confusion.
Cheers Michele
On Wednesday 19 May 2021 10:13:08 am Michele Calgaro via tde-users wrote:
On 2021/05/19 11:44 PM, Michael via tde-users wrote:
On Wednesday 19 May 2021 06:08:21 am Michele Calgaro via tde-users wrote:
On 2021/05/19 07:28 PM, J Leslie Turriff wrote:
When a new instance of the desktop is started, there are several ways to run scripts or applications automagically, e.g. files in ~/autostart. Is there some way to run scripts when the desktop is being closed?
Hi Leslie, you can use kcmautostart, then you can go to TCC -> TDE Components -> Autostart mamager. You can add a command and select Shutdown to run it on shutdown, although I never tried it.
Is 'kcmautostart' the correct name?
# aptitude search kcmautostart {nothing} # aptitude search autostart {snip} p kcontrol-autostart-trinity - autostart module for the Trinity control center {snip}
I wanted to try things in (play with) 'autostop' too, but never explored it...
Best, Michael
Well, in Debian the package is called kcontrol-autostart-trinity-.... but the folder in the repo source is called kcmautostart, hence me remembering that. The TDE module is actually called autostart and you can invoke it with tdecmshell autostart from CLI. Sorry for the confusion.
Thanks Michele!,
For other's reference, it wasn't auto installed on my system, probably why I couldn't find it before ;)
For Debian based:
apt-get install kcontrol-autostart-trinity
Then it shows up in TCC and after you add something you can switch it to shutdown.
Although now I'm curious what ENV does (as opposed to startup/shutdown).
Thanks again, Michael
On 2021-05-19 11:35:06 Michael via tde-users wrote:
Although now I'm curious what ENV does (as opposed to startup/shutdown).
Thanks again, Michael
An excellent question. I would suggest clicking on the Help button, but as with many of the non-trivial components, the help that is presented merely tells us, "We Apologize No documentation has yet been written for Autostart."
Leslie -- openSUSE Leap 15.2 x86_64 Qt: 3.5.0 TDE: R14.0.9 tde-config: 1.0
On 2021/05/20 01:35 AM, Michael via tde-users wrote:
Although now I'm curious what ENV does (as opposed to startup/shutdown).
This is supposed to run scripts that set environment variables (those in ~/.trinity/env) but it does not work as implemented so far AFAICT.
Cheers Michele
On 2021-05-19 06:08:21 Michele Calgaro via tde-users wrote:
On 2021/05/19 07:28 PM, J Leslie Turriff wrote:
When a new instance of the desktop is started, there are several ways to run scripts or applications automagically, e.g. files in ~/autostart. Is there some way to run scripts when the desktop is being closed?
Hi Leslie, you can use kcmautostart, then you can go to TCC -> TDE Components -> Autostart mamager. You can add a command and select Shutdown to run it on shutdown, although I never tried it.
Cheers Michele
Ah! I didn't realize that there is a feature for that. (Maybe "Autostart" is a misnomer, since it's not limited to starting things. :-) ) Do the entries in the Autostart Manager run in the order they're listed? (Doubtful, since the list can be sorted by Name or Command.)
Leslie -- openSUSE Leap 15.2 x86_64 Qt: 3.5.0 TDE: R14.0.9 tde-config: 1.0