|
![]() |
|
Thread Tools | Search this Thread |
![]() |
#1 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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:
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:
License/Copying: GNU LGPL Version 2 or Version 3 your choice. Any other license terms are only available directly from the author in writing. Last edited by BeckyEbook; 08-21-2025 at 05:10 PM. |
![]() |
![]() |
![]() |
#2 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 872
Karma: 3501146
Join Date: Jan 2017
Location: Poland
Device: Various
|
(Reserved to future use)
|
![]() |
![]() |
![]() |
#3 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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!
|
![]() |
![]() |
![]() |
#4 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,884
Karma: 6120478
Join Date: Nov 2009
Device: many
|
Added to the Sigil Plugin Index.
|
![]() |
![]() |
![]() |
#5 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,690
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:
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. |
|
![]() |
![]() |
![]() |
#6 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#7 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,690
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. |
![]() |
![]() |
![]() |
#8 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#9 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,690
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!
|
![]() |
![]() |
![]() |
#10 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#11 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,690
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.
|
![]() |
![]() |
![]() |
#12 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
![]() |
#13 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,690
Karma: 205039118
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
|
![]() |
![]() |
![]() |
#14 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#15 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,690
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. |
![]() |
![]() |
![]() |
|
![]() |
||||
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 |