|
|||||||
![]() |
|
|
Thread Tools | Search this Thread |
|
|
#16 |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 987
Karma: 3600000
Join Date: Jan 2017
Location: Poland
Device: Various
|
@DiapDealer: Yes, the current version of AppImage would be great.
EDIT: Unknown lines are saved here: Code:
# unknown
lines.append(stripped)
Last edited by BeckyEbook; 08-23-2025 at 03:39 PM. Reason: Remove buggy 0.1.2 version. |
|
|
|
|
|
#17 | |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 29,476
Karma: 212177022
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
https://github.com/dougmassay/win-qt...s/tag/v5.212-1 There's a Sigil-2.6.2-x86_64.AppImage asset at that link. 0.1.2 is now preserving my custom/unknown variables. Thanks! But now I notice that unchecking some boxes in the gui (like for SIGIL_SKIP_UPDATE_CHECK) does not remove (or change) that variable in the file. It stays SIGIL_SKIP_UPDATE_CHECK=1. |
|
|
|
|
| Advert | |
|
|
|
|
#18 |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 987
Karma: 3600000
Join Date: Jan 2017
Location: Poland
Device: Various
|
I ran a few tests and I hope that both objectives were achieved: restoring the broken deletion of entries without selection or entered values, and preserving unknown environment variables.
Last edited by BeckyEbook; 08-25-2025 at 02:45 AM. Reason: The newer version of the plugin is in the first post. |
|
|
|
|
|
#19 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 29,476
Karma: 212177022
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
A quick test of 0.1.3 looks great! Thanks!
|
|
|
|
|
|
#20 |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 987
Karma: 3600000
Join Date: Jan 2017
Location: Poland
Device: Various
|
I have published a new version of the plugin in the first post. Feel free to test it.
Here's a planned improvement I hope to add soon: the env-vars.txt file is optional, meaning users can still set environment variables in the traditional way – directly within the system via the command line, another application, or a batch/sh script. My goal is to add a new feature that will display information within a dialog box, letting the user know if a specific Sigil environment variable has been set at the system level instead of in the env-vars.txt file. |
|
|
|
| Advert | |
|
|
|
|
#21 |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 987
Karma: 3600000
Join Date: Jan 2017
Location: Poland
Device: Various
|
TL;DR: The beta version is available in the second post. Minimum Sigil version: 2.7.6
I’ve just uploaded a new beta version of the Environment Variables Manager plugin. This update is specifically designed to support the latest changes in Sigil 2.7.6 while also introducing several "Quality of Life" improvements to the user interface. What's New in v0.1.15 (Beta): Support for Unsetting Variables (Sigil 2.7.6+): Following the recent Sigil update, you can now explicitly "unset" environment variables. The plugin now supports the new tilde (~) prefix. In the dropdown menu, simply select "Unset", and the variable will be removed from the environment upon the next Sigil launch. Smarter UI Automation:
Note for Beta Testers: This version has been tested on my setup, but since it involves new UI logic (signal blocking to prevent feedback loops), I’d appreciate any feedback – especially if you notice any quirks when switching between "Set", "Not set", and "Unset" modes. The plugin should be stable, but as always with beta software, keep a backup of your env-vars.txt if you have a very complex setup. Looking forward to your feedback! |
|
|
|
|
|
#22 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 29,476
Karma: 212177022
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I like it! I especially like seeing which variables are set in the system/user environment and not in the env-vars.txt files. It's often hard to remember where such things are set. This makes it easy to track things down and determine whether you need to unset it in Sigil, or whether you can just remove it from the system variables entirely.
The only thing I noticed was that the check box stayed checked after unsetting a variable. The checkbox was greyed out, however, and the checkmark appears to be a cosmetic-only thing. It's unchecked when the plugin is next run. No big deal at all, I just thought I'd mention it. Thanks! |
|
|
|
|
|
#23 |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 987
Karma: 3600000
Join Date: Jan 2017
Location: Poland
Device: Various
|
Thanks. I've fixed it.
Please feel free to test the new version: 0.1.16-beta. The link is in the second post. |
|
|
|
|
|
#24 | |
|
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 55
Karma: 17648
Join Date: Jun 2011
Location: Lima, Peru
Device: Kindle 10Gen / Kobo Aura HD / Nook STR
|
Hi, BeckyEbook.
Thanks for this useful plugin! But the 0.1.16 doesn't save the settings, even though I get this message: Quote:
The 0.1.12 works with both versions of Sigil, but of course, I lose the new features you added.
|
|
|
|
|
|
|
#25 |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 987
Karma: 3600000
Join Date: Jan 2017
Location: Poland
Device: Various
|
Hmm…
I'm trying to figure out this issue. You say the plugin isn’t working because it doesn’t save the environment variables to a file, right? At the same time, you mentioned that you closed the dialog box, because the message "The user closed the dialog box" means that the user chose not to save the data to the file and selected "Cancel" instead of "Save," or pressed the Escape key, or closed the dialog box by clicking the "X." Can you provide more details? 1. The state of the env-vars.txt file before running the plugin 2. What exactly you set in the plugin window 3. The state of the env-vars.txt file after saving(!) the variables in the plugin |
|
|
|
|
|
#26 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 29,476
Karma: 212177022
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
It's working fine (v0.1.16-beta) for me on Windows 10 with Sigil 2.7.6.
If I hit the Save button after any changes using the plugin, everything is saved to the env-vars.txt file. The only time I see the "The user closed the dialog box" is when I Cancel the plugin (or close it with the 'X' button). |
|
|
|
|
|
#27 |
|
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 52,137
Karma: 180576666
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
I'm seeing the same as @DiapDealer under Windows 10 & Windows 11 with Sigil 2.8.0 (self compiled).
|
|
|
|
|
|
#28 | |
|
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,693
Karma: 33011292
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
BR |
|
|
|
|
|
|
#29 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 29,476
Karma: 212177022
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I don't know why anyone would expect their changes to be saved by choosing any other option than clicking the quite prominently displayed 'Save' button. Any dismissal of the plugin dialog other than clicking the Save button is a "Don't Save" choice. How would adding another "Don't Save" button (Discard) simplify that? Discard and Cancel would be the same thing here: changes not saved.
Unless you're talking about the Plugin Runner dialog itself. Plugins have zero control over the buttons that appear there. They can only choose to leave the full runner displayed for debug purposes (quite common in betas), show smaller version without debug output, or close it automatically after the plugin is done running. But the plugin is already done running at that point. How you choose to dismiss the Plugin Runner dialog is immaterial to a plugin's run. Always will be. Last edited by DiapDealer; 06-01-2026 at 08:03 PM. |
|
|
|
|
|
#30 | |
|
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 55
Karma: 17648
Join Date: Jun 2011
Location: Lima, Peru
Device: Kindle 10Gen / Kobo Aura HD / Nook STR
|
Quote:
If we've only modified variables with Set/Not Set, it saves the changes normally. (Perhaps that's the case with DD and DNSB?) But if we use variables with user input, the plugin no longer allows saving the changes (it only allows closing the window, displaying the message I already transcribed). In my case, I had modified SIGIL_PREVIEW_TIMEOUT with a previous version. Version 0.1.16, upon detecting a value there, doesn't allow changing any other values. Only by setting it to "Not set" does it allow changing the other values and saving the changes. Video capture: 0.1.16 NO Reinstalling 0.1.12 resolves the problem (but it's not a good solution). Video capture: 0.1.12 YES ![]() System: Windows 11 LA-Spanish, Sigil 2.80 (the latest beta, but the same behavior occurs in the official 2.7.6 version). Last edited by jugaor; 06-02-2026 at 01:00 AM. Reason: (adding second video) |
|
|
|
|
![]() |
|
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 |