Bug 502603

Summary: Creating new application entries does not honor XDG configuration if the configured XDG directory does not exist.
Product: [Applications] kmenuedit Reporter: Marcus E. W. Germano, IV <sorucoder+kdebugtracker>
Component: generalAssignee: Plasma Bugs List <plasma-bugs-null>
Status: CONFIRMED ---    
Severity: minor CC: kdedev, nate
Priority: NOR    
Version First Reported In: 6.3.4   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Marcus E. W. Germano, IV 2025-04-09 11:12:57 UTC
SUMMARY

I configured my `$XDG_DATA_HOME` to `$HOME/.data` instead of the default `$HOME/.local/share`. Because the `applications` directory did not exist, the menu editor creates it at `$HOME/.local/share/applications`, instead of `$HOME/.data/applications`. Creating it did seem to fix the issue.

STEPS TO REPRODUCE
1. Set `XDG_DATA_HOME` to a different directory.
2. Use the KDE Menu Editor to create new desktop entries.

OBSERVED RESULT

Creates a new directory at `$HOME/.local/share/applications` if `$XDG_DATA_HOME/applications` does not exist, and places new desktop entries there.

EXPECTED RESULT

Should create the directory at `$XDG_DATA_HOME/applications` and place the new desktop entries there.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.12.0
Qt Version: 6.9.0