Bug 412619 - kwriteconfig cannot write "-1" as value
Summary: kwriteconfig cannot write "-1" as value
Status: RESOLVED NOT A BUG
Alias: None
Product: frameworks-kconfig
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: 5.62.0
Platform: Arch Linux All
: NOR normal
Target Milestone: ---
Assignee: Matthew Dawson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-04 21:02 UTC by shalva97
Modified: 2021-06-13 14:55 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description shalva97 2019-10-04 21:02:18 UTC
SUMMARY

STEPS TO REPRODUCE
1. execute kwriteconfig5 --file $HOME/.config/plasmarc --group PlasmaToolTips --key Delay "-1"

OBSERVED RESULT
kwriteconfig5: Unknown option '1'

EXPECTED RESULT
-1 should be written as the value of Delay


SOFTWARE/OS VERSIONS
Linux/KDE Plasma:  5.3.1-arch1-1-ARCH / 5.16.5
(available in About System)
KDE Plasma Version: 5.16.5
KDE Frameworks Version: 5.62.0
Qt Version: 5.13.1

ADDITIONAL INFORMATION

GUI settings can disable plasma tool tips by writing -1 as the value for Delay in PlasmaToolTips, but kwriteconfig5 can not
Comment 1 Ahmad Samir 2021-06-13 14:55:13 UTC
This is how some/most Shells behave, anything starting with '-' is considered as an option to the command being run (the same behaviour happens with grep and rm ...etc). To use that command line you have to use '--' to mark the end of the option names:
kwriteconfig5 --file $HOME/.config/plasmarc --group PlasmaToolTips --key Delay -- "-1"