https://bugs.kde.org/show_bug.cgi?id=489365
Bug ID: 489365 Summary: Plasmashell crashes when writing "false" to `compactView` key in `Appearance` config group Classification: Plasma Product: plasmashell Version: 6.1.0 Platform: Other OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: Global Menu Assignee: plasma-b...@kde.org Reporter: hetlachendevo...@gmail.com CC: k...@privat.broulik.de, mvourla...@gmail.com Target Milestone: 1.0 Created attachment 171123 --> https://bugs.kde.org/attachment.cgi?id=171123&action=edit The script for configuring the widget Hi! I am trying to automate switching the global menu between compactview and not-compact view. I am trying to do this using a javascript file I wrote adapted from [the examples in the documentation](https://develop.kde.org/docs/plasma/scripting/examples/). The problem I came across is that plasmashell crashes (segfault) when I write false to that config key. STEPS TO REPRODUCE 1. Download the javascript file included 2. make sure one of the panels at least contains a global menu widget 3. edit the script to set the `valueToWrite` variable at the top to `"true"` 4. run it using ``` qdbus org.kde.plasmashell /PlasmaShell org.kde.PlasmaShell.evaluateScript "$(cat PATH/TO/DOWNLOADED_SCRIPT.js)"; ``` 3. now edit the script to set the variable to `"false"` 4. run it again, wait some time (a few seconds on my system), plasmashell will crash. OBSERVED RESULT Plasmashell crashes. EXPECTED RESULT The config value gets updated, and the global menu goes from compactView back to non-compactView. SOFTWARE/OS VERSIONS Linux: Danctnix linux, based on arch linux arm, running on a pinetab2. KDE Plasma Version: 6.1.0 KDE Frameworks Version: 6.3.0 Qt Version: 6.7.2 ADDITIONAL INFORMATION - -- You are receiving this mail because: You are watching all bug changes.