Skip to content

Use QStandardPaths::ApplicationsLocation (XDG_*) for open with #3663

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 1, 2025

Conversation

rardiol
Copy link
Contributor

@rardiol rardiol commented Jul 9, 2024

Use QStandardPaths::standardLocations(QStandardPaths::ApplicationsLocation) to get directories to look for desktop files for the open with option instead of hardcoded default dirs.

This might fix #1868 and #3046 for snap and flatpak users since they seem to use custom XDG_DATA_DIRS and XDG_DATA_HOME. Fixes the open with menu on my NixOS.

https://doc.qt.io/qt-5/qstandardpaths.html

@mmahmoudian mmahmoudian added the Linux Linux specific issue label Jul 10, 2024
@borgmanJeremy borgmanJeremy merged commit 14619b1 into flameshot-org:master May 1, 2025
23 checks passed
@mmahmoudian mmahmoudian added this to the v13 milestone May 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Linux Linux specific issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

'App Launcher' not listing any apps and also not launching either (Xorg)
4 participants