You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
If the printed darkness is set to 0% in the lprint web interface, it's reset to the default value (53%) after the lprint server restarts. Observed with TSPL 203dpi driver.
To Reproduce
Steps to reproduce the behavior:
Go to lprint web interface
Set printer darkness to 0% and save settings
Restart lprint: sudo systemctl restart lprint
Refresh lprint web interface
The printer darkness is shown as 53% in the web interface.
Expected behavior
The printer darkness is shown as 0% in the web interface.
System Information:
OS: Fedora Workstation 39 x86_64
Browser: Firefox
Version: master branch of lprint, 1.4.x branch of pappl
Additional context
When any non-zero darkness is configured, it's saved in /etc/lprint.conf on a line starting with printer-darkness-configured. When the darkness is set to 0%, that line is absent. It appears that zero darkness is treated as unset darkness.
The issue is very likely in pappl/system-loadsave.c on line 531. However, most other settings are not saved when they are 0.
The text was updated successfully, but these errors were encountered:
Describe the bug
If the printed darkness is set to 0% in the lprint web interface, it's reset to the default value (53%) after the lprint server restarts. Observed with TSPL 203dpi driver.
To Reproduce
Steps to reproduce the behavior:
sudo systemctl restart lprint
Expected behavior
The printer darkness is shown as 0% in the web interface.
System Information:
Additional context
When any non-zero darkness is configured, it's saved in
/etc/lprint.conf
on a line starting withprinter-darkness-configured
. When the darkness is set to 0%, that line is absent. It appears that zero darkness is treated as unset darkness.The issue is very likely in
pappl/system-loadsave.c
on line 531. However, most other settings are not saved when they are 0.The text was updated successfully, but these errors were encountered: