Skip to content

fix[closes #4482]: [Bug]: KDE/Wayland Desktop Entry creation failed#4485

Open
g33z wants to merge 3 commits intobottlesdevs:mainfrom
g33z:main
Open

fix[closes #4482]: [Bug]: KDE/Wayland Desktop Entry creation failed#4485
g33z wants to merge 3 commits intobottlesdevs:mainfrom
g33z:main

Conversation

@g33z
Copy link
Copy Markdown
Contributor

@g33z g33z commented Apr 18, 2026

Description

Observation

xdg-desktop-portal-kde has a buggy Dynamic Launcher portal implementation. 👯

The QML dialog (DynamicLauncherDialog.qml) is missing required properties (launcherIcon, launcherName), causing the portal to reject requests before the confirmation dialog even displays.

The code

When the portal fails, there is the fallback creating .desktop files manually.

However that fallback only catches errors from dynamic_launcher_install(), not from dynamic_launcher_prepare_install_finish() where KDE's rejection actually occurs.

I caught the error within libportal and added a general fallback functionality adding the .desktop files to ~/.local/share/applications for menu entries as well as ~/Desktop for actual desktop shortcuts.

I did add the necessary permissions in the development build json.
Hope that is how that was intended... 😅

Fixes #4482

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality) - actually adding a Desktop icon, not only a menu entry 😛
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

I created multiple entries and observed the logs inside the terminal.

image

Provide instructions so we can reproduce.

  • have KDE Plasma installed :P
  • Try to create a Desktop shortcut for an added application

@g33z
Copy link
Copy Markdown
Contributor Author

g33z commented Apr 18, 2026

Only to connect the two, I am mentioning #4012 here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: KDE/Wayland Desktop Entry creation failed

1 participant