Xfce Forum

Sub domains
 

You are not logged in.

#1 2024-05-30 18:59:49

qeyzho
Member
Registered: 2024-05-30
Posts: 5

Genmon does not update after changing .rc config file (CLOSED)

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

#2 2024-05-30 22:51:09

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,313

Re: Genmon does not update after changing .rc config file (CLOSED)

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

#3 2024-05-31 07:24:29

qeyzho
Member
Registered: 2024-05-30
Posts: 5

Re: Genmon does not update after changing .rc config file (CLOSED)

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

#4 2024-05-31 10:36:25

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,313

Re: Genmon does not update after changing .rc config file (CLOSED)

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

#5 2024-05-31 15:08:27

qeyzho
Member
Registered: 2024-05-30
Posts: 5

Re: Genmon does not update after changing .rc config file (CLOSED)

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

Board footer

Powered by FluxBB