Bug 473443

Summary: Editing menuitem doesn't save environment variable field
Product: [Applications] kmenuedit Reporter: Erec <erecio>
Component: generalAssignee: Plasma Bugs List <plasma-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: erecio, glizda, gmipf64, Max.Buchholz, zeroxdead
Priority: NOR    
Version First Reported In: 6.2.3   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: screenshot of edit application

Description Erec 2023-08-16 09:00:43 UTC
Created attachment 161000 [details]
screenshot of edit application

SUMMARY

STEPS TO REPRODUCE
1. Bring the menuitem up (Firefox, for example)
2. right click and "Edit Application"
3. Set "Environment Variables" under "Application" tab (FOO="my_bar1", for example)


OBSERVED RESULT
FOO is not set for the application

EXPECTED RESULT
FOO would be set to "my_bar1" and application would behave appropriately.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: kmenuedit5-5.27.4-bp155.1.7.x86_64

(available in About System) 
CANNOT COPY PASTE from "About System"

KDE Plasma Version: 5.27.4
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8

ADDITIONAL INFORMATION
Comment 1 Piotr Gliźniewicz 2023-11-24 08:45:01 UTC
Same for the "Arguments" field. I'm trying to add -conf %U for DOSBox Staging, and it never saves it.

Platform: Fedora 39, Plasma 5.27.9
Comment 2 Max Buchholz 2023-12-19 11:18:25 UTC
Still exists for me.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Manjaro Linux
kmenuedit5-5.27.10-1
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.112.0
Qt Version: 5.15.11
Comment 3 Halim 2024-11-19 23:59:31 UTC
Upgraded from Fedora 39 to 41 yesterday and noticed the same behaviour. "Environment Variables" set in the application menu items are ignored. 

On Fedora 39 it was working all the time.
Comment 4 Halim 2024-11-20 00:04:56 UTC
Forgot to add a detail. On my end added values to the "Environment Variables" field doesn't disappear after saving. But they are still ignored.
Comment 5 zeroxdead 2024-12-01 16:03:31 UTC
Have the same issue on Arch Linux. There's seems to be some bug in KActivityManager. As a workaround you can try to remove ~/.config/kactivitymanager-*, ~/.local/share/kactivitymanager/*, ~/.cache. After that logout and login again