-
Notifications
You must be signed in to change notification settings - Fork 621
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
[REQUEST] Indicator for flatpak, AppImage, Regular (pkgmgr) apps #2049
Comments
Is there a way to detect this? |
where the launcher would look for .desktop files should be configured somewhere right?
however, different systems, and flatpak environments (user installation, system wide installation) may be too complex for approach 1, because too many variables to check for. an AppImage should be named "AppXYZ.AppImage" IIRC, so, there would be a unique identifier for an appimage as well. |
So the system (via XDG) tells rofi what directories to scan for desktop files. I did not see a 'standardized' way to check this. I see flatpack (installed an app to test) has a X-Flatpak= entry we could check. Is this debian only? or on every system? |
Maybe depending on the locations XDG tells rofi to categorize them?
I understand, I'd feel the same way. Wait until you see my workaround though...
They don't specify a current standard in their docs
I would strongly discourage from using that. The .desktop entry will still function when I delete those optional entries. However, currently, I have those entries as well (arch-derivative, btw). For now, I have dealt with it like so:
(Reasoning: I trust the location of those files to be flatpak launchers only. You should not assume clean systems for everyone. A user comes about the idea to move all application launchers in that folder? Your identification system should still work; I could modify the script to check for the Exec=flatpak bin first, but why bother, not my use case; to any other user; feel free to modify the script to encompass that. ... or just see below, I guess) (solves it for me with both rofi and fzf, so, I just need to rund this after each flatpak update... well, here goes my flatpak install and upgrade script I guess) I guess that's all I could help you with for now, it's pretty much a design decision / which paradigms to follow, and I can't contribute anything more than this. Well, exec-safe modification of your .desktop files for renaming the App name to App (flatpak); sponsored by AI, not (just) me:
Plus: unintentional - but welcome - side-effect: |
What might be 'nicer for your script' is to create the 'updated' flatpack desktop into ~/.local/share/applications/ this has higher priority then the system ones, so those should show.. this way you can run this as user, not root and you do not modify system files. |
I appreciate the idea. [Edits for removing redundancies and readability] I don't want to be a contrarian here, but in my view the holistic approach for your flatpak strategy should dictate how you want to implement a "fix". User-only System-wide |
Before opening a feature request
What is the user problem or growth opportunity you want to see solved?
First, I have no idea how to check other branches. I am no sw-dev, don't want to become one, but regularly post issues, FRs, etc. If you want me to do so, tell me how.
for drun:
Indicate what app-type is a specific entry. like a if grep flatpak in a folder tree results in true, display a flatpak indicator, be it a string or an icon.
If you have installed via package manager and flatpak, maybe to test, maybe with separate accounts in each app version, you almost always want to know which version to launch, when they otherwise look exactly the same in the app list.
How do you know that this problem exists today? Why is this important?
I have / had multiple instances of chromium, firefox, even discord for testing, but they all look the same in the menu, never knowing which entry is the flatpak.
Who will benefit from it?
Everyone, using the same app more than once ie. as flatpak + from their repos on the same system, for whatever reason.
Rofi version (rofi -v)
Version: 1.7.5+wayland3-51-g0a0cc5f6
Configuration
https://gist.github.com/erdnuesse/8dd9e2dc18f852a7664c360827d85573
Additional information
No response
The text was updated successfully, but these errors were encountered: