Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 08-21-2025, 05:07 PM   #1
BeckyEbook
Guru
BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.
 
BeckyEbook's Avatar
 
Posts: 872
Karma: 3501146
Join Date: Jan 2017
Location: Poland
Device: Various
[Plugin] EnvVarEditor - GUI editor for Sigil's environment variables

Updated: August 21, 2025
Current Version: "0.1.0"
Status: Stable
Plugin type: edit

Plugin icon:


How it works:
This plugin provides a simple GUI editor for Sigil's env-vars.txt file.
Normally, editing this file requires manual text editing, which can be error-prone. With EnvVarEditor, you can easily view, add, remove, and update supported environment variables directly from within Sigil.

The plugin:
  • Lists all known Sigil environment variables with proper input widgets (checkboxes, text fields, spinboxes).
  • Supports validation of values (e.g., numeric ranges, valid hex colors).
  • Allows removing variables entirely from env-vars.txt if they are not needed.
  • Preserves any custom or unknown entries that already exist in the file.
  • Prints a short summary of what was written back to the file after saving.

Installation:
1. Select Manage Plugins from the Plugins menu. In the Manage Plugins dialog box, select Use Bundled Python, if it isn't already selected. (If your Sigil version doesn't have a Use Bundled Python option, click one of the Auto buttons to detect the path or Set to manually select the Python interpreter path.)
2. Click Add Plugin and select EnvVarEditor_v0.X.Y.zip. This will install the EnvVarEditor plugin, which you can then run via Plugins > Edit > EnvVarEditor.

Issues:
At this stage no major issues are known. Please report bugs or suggestions in this thread.
Keep in mind that some values will be validated (e.g., integers must be within allowed ranges, colors must be in the format #rrggbb). Invalid values will trigger a warning message and will not be saved until corrected.

OS Requirements:
Windows/Linux/OS X.
Tested on Windows 10 and 11 with Sigil 2.6.2 prerelease. Should also work on Linux and macOS.
*** Linux users will have to make sure that the PySide6 module is present if it's not already. ***

Sigil Requirements:
Minimum version of Sigil: 2.6.2

Change Log:
  • v0.1.0 - First public release

License/Copying: GNU LGPL Version 2 or Version 3 your choice. Any other license terms are only available directly from the author in writing.
Attached Files
File Type: zip EnvVarEditor_v0.1.0.zip (12.9 KB, 8 views)

Last edited by BeckyEbook; 08-21-2025 at 05:10 PM.
BeckyEbook is offline   Reply With Quote
Old 08-21-2025, 05:12 PM   #2
BeckyEbook
Guru
BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.
 
BeckyEbook's Avatar
 
Posts: 872
Karma: 3501146
Join Date: Jan 2017
Location: Poland
Device: Various
(Reserved to future use)
BeckyEbook is offline   Reply With Quote
Old 08-21-2025, 05:40 PM   #3
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,902
Karma: 169810634
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Installed and tested. Looks good!
DNSB is offline   Reply With Quote
Old 08-21-2025, 09:28 PM   #4
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,884
Karma: 6120478
Join Date: Nov 2009
Device: many
Added to the Sigil Plugin Index.
KevinH is offline   Reply With Quote
Old Yesterday, 10:56 AM   #5
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,691
Karma: 205039118
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
It doesn't seem to be preserving my custom variables on Linux. Or maybe I'm misunderstanding.

If I hit the "Save' button in the plugin with none of the displayed variables set, should it be removing all of my custom/unknown variables from the env-vars.txt file? I was expecting the plugin to ignore variables it was unaware of. Happy to adjust if this is the expected behavior. I was just going by:

Quote:
Preserves any custom or unknown entries that already exist in the file.
I have a QT variable I'd like to leave permanently set, while still being able to use the plugin.

QT_QUICK_BACKEND=software

Also... what are the chances of being able to see (with the plugin) a list of custom/unknown variables that are currently set. No big deal if not. It would just be nice.

Last edited by DiapDealer; Yesterday at 11:02 AM.
DiapDealer is offline   Reply With Quote
Old Yesterday, 11:01 AM   #6
BeckyEbook
Guru
BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.
 
BeckyEbook's Avatar
 
Posts: 872
Karma: 3501146
Join Date: Jan 2017
Location: Poland
Device: Various
Send me the file via PM and I'll be happy to check it out.
On my Windows, it keeps other entries that exist in this file, so I can keep additional comments for myself, previous qdebug log file names, etc. there.
I can test it on Linux Arch.
BeckyEbook is offline   Reply With Quote
Old Yesterday, 11:36 AM   #7
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,691
Karma: 205039118
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
I can get you the file if you really need it, but there are literally only 2 entries in it:

QT_QUICK_BACKEND=software
SIGIL_SKIP_UPDATE_CHECK=1

Whenever I make a change using the plugin... clicking Save causes the "QT_QUICK_BACKEND=software" line to be removed.
DiapDealer is offline   Reply With Quote
Old Yesterday, 11:41 AM   #8
BeckyEbook
Guru
BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.
 
BeckyEbook's Avatar
 
Posts: 872
Karma: 3501146
Join Date: Jan 2017
Location: Poland
Device: Various
Indeed, I improved and improved it, and finally damaged that part.
But I will fix it.
BeckyEbook is offline   Reply With Quote
Old Yesterday, 12:02 PM   #9
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,691
Karma: 205039118
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
No need to rush on my account. I just wanted to make sure the plugin was intended to ignore all entries it was unaware of. Thanks for the plugin!
DiapDealer is offline   Reply With Quote
Old Yesterday, 12:29 PM   #10
BeckyEbook
Guru
BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.
 
BeckyEbook's Avatar
 
Posts: 872
Karma: 3501146
Join Date: Jan 2017
Location: Poland
Device: Various
@DiapDealer: Please test the updated version. You should like it.

Last edited by BeckyEbook; Yesterday at 02:34 PM. Reason: Remove buggy 0.1.1 version.
BeckyEbook is offline   Reply With Quote
Old Yesterday, 01:20 PM   #11
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,691
Karma: 205039118
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Clicking 'Save' in 0.1.1 still seems to be deleting any entry that's not in the known list of Sigil env vars on my Linux machine. I'll spin up a Windows VM later today and see if I can see any difference in the behavior.
DiapDealer is offline   Reply With Quote
Old Yesterday, 01:28 PM   #12
BeckyEbook
Guru
BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.
 
BeckyEbook's Avatar
 
Posts: 872
Karma: 3501146
Join Date: Jan 2017
Location: Poland
Device: Various
Building Sigil on Linux will take some time because I need to update a lot of components. Tests on Windows are promising.
BeckyEbook is offline   Reply With Quote
Old Yesterday, 01:38 PM   #13
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,691
Karma: 205039118
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by BeckyEbook View Post
Building Sigil on Linux will take some time because I need to update a lot of components. Tests on Windows are promising.
Would it help if I can get you an AppImage of the most current Sigil?
DiapDealer is offline   Reply With Quote
Old Yesterday, 01:49 PM   #14
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,884
Karma: 6120478
Join Date: Nov 2009
Device: many
The loop in the dlg ignores "existing" that are not recognized in your official sigil list in init and it is not stored anyplace. So the fixup for existing not in your list must come in the run routine.

So in the plugin run routine, you need to walk "existing" and look for any keys not in your sigil list and add them before the save.

No access to computer to check this but this is from eyeballing the 0.1.1 code.

Hope something here helps.
KevinH is offline   Reply With Quote
Old Yesterday, 02:31 PM   #15
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,691
Karma: 205039118
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Perhaps there's simply some confusion on expectations here? I might be missing something, but at first glance, I just don't see anything in the plugin's code that would preserve anything other than 1) variables included in the list of Sigil env vars, or 2) lines that start with '#' (commented lines), or 3) empty lines, or 4) lines with no = character in them.

EDIT: Actually, that's not true. I see now where the attempt to preserve custom entries is made. I'm just not sure why it's failing (at least on linux) to do so. Have to do more inspection.

Last edited by DiapDealer; Yesterday at 02:36 PM.
DiapDealer is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sigil Qt6 and GUI plugin development changes DiapDealer Plugins 26 11-16-2023 11:12 AM
[Plugin] SelfCSS for Sigil WYSIWYG CSS editor byword Plugins 5 08-30-2023 09:44 AM
QT scaling - Ways to change Environment Variables in Windows Comfy.n Calibre 4 08-11-2022 11:20 PM
[GUI Plugin] Save Virtual Libraries To Column (GUI) chaley Plugins 14 04-04-2021 05:25 AM
[Editor Plugin] - Enabling 'Customize plugin' dialog directly from the Editor thiago.eec Development 7 01-09-2019 08:05 PM


All times are GMT -4. The time now is 10:13 AM.


MobileRead.com is a privately owned, operated and funded community.