You are not logged in.
I made a Python script that is ran by a XFCE genmon. This script (based some calculation) changes UpdatePeriod in rc format file located in (.config/xfce4/panel/genmon-7.rc) that belogns to the genmon. The problem is How can I restart this genmon and force it to be reconfig by edited rc format file?
Last edited by qeyzho (2024-05-31 15:09:51)
Offline
What version of xfce4-genmon-plugin are you running?
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
I have Debian 12.5 (xfce4-genmon-plugin (4.1.1-1))
This is rc file related to the genmon:
------
Command=python3 .MyScript/DsDs.py
UseLabel=0
Text=
UpdatePeriod=300000
------
after running DsDs.py this rc file chage to:
------
Command=python3 .MyScript/SolarCalendar.py
UseLabel=0
Text=
UpdatePeriod=1200000
-----
But I think I should run an command to restart the this genmon (because its UpdatePeriod does not change)
Offline
Unfortunately there is no reliable way to restart the plugin via a command so that it re-reads the configuration settings (you need to manually make the change in the configuration dialog). You can refresh the plugin but this just basically re-runs the existing command. Feel free to create an enhancement request and I'll see if I can add the functionality for a future version.
In the meantime, you may need to re-architect what you are trying to do within one script.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
Thanks a lot for your great answer and now I know that such a feature does not exist directly. I will try and create an enhancement request...
Offline
[ Generated in 0.007 seconds, 7 queries executed - Memory usage: 533.69 KiB (Peak: 534.53 KiB) ]