Bug 469916

Summary: Env variables field is overwriting program and arguments fields
Product: [Plasma] plasmashell Reporter: Łukasz Zając <sec>
Component: Application Menu (Kicker) widgetAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: minor CC: nate
Priority: NOR    
Version First Reported In: 5.27.4   
Target Milestone: 1.0   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: video showcasing issue

Description Łukasz Zając 2023-05-17 22:37:11 UTC
Created attachment 159050 [details]
video showcasing issue

STEPS TO REPRODUCE
1.  right click on app to enter properties
2.  In application tab, put some env variables, save, close

OBSERVED RESULT
App will no longer run because If You open properties again, You will notice first env variable will move to program field and the rest to arguments field.

EXPECTED RESULT
env variables stay in the field and not overwrite the rest of fields.

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.27.4
KDE Frameworks Version: 5.105.0
Qt Version: 5.15.9
Comment 1 Nate Graham 2023-05-19 19:28:19 UTC
Ah, I see the problem. What you're doing in the video isn't actually setting environment variables, so the system is confused. Environment variables are in the form of "ENV_VAR=1" or something like that. If there's no equal sign, what you're actually doing is chaining commands together, which is different.

I'd recommend asking for help in https://discuss.kde.org if need further assistance with this.