Skip to content
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

[BUG] Rofi doesn't use .desktop override in /home/slava/.local/share/flatpak/exports/share/applications #2111

Open
2 tasks done
vchslv13 opened this issue Mar 6, 2025 · 2 comments
Labels

Comments

@vchslv13
Copy link

vchslv13 commented Mar 6, 2025

Rofi version (rofi -v)

1.7.8-dirty

Configuration

https://gist.github.com/vchslv13/fb2611d978374f180a63f31eb557f2cb

Theme

https://gist.github.com/vchslv13/a659c4d6ea31d330e4f4b2cc9ebc9edf

Timing report

No response

Launch command

rofi -show combi

Step to reproduce

  • Install Telegram Desktop in Flatpak
  • Have $XDG_DATA_DIRS equal to /home/slava/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share:/var/lib/snapd/desktop
  • Add /home/slava/.local/share/flatpak/exports/share/applications/org.telegram.desktop.desktop file to make a custom override of org.telegram.desktop.desktop configuration

Expected behavior

Rofi uses /home/slava/.local/share/flatpak/exports/share/applications/org.telegram.desktop.desktop to run Telegram Desktop entry

Actual behavior

Rofi uses .desktop file of unknown origin to run Telegram Desktop entry

Additional information

I've tried to understand what actual .desktop file is run by running rofi with G_MESSAGES_DEBUG=all rofi -show combi > rofilog.txt command (see output rofilog.txt) deleting all caches with rm /home/slava/.cache/rofi* before, but it wasn't helpful as the first rows with org.telegram.desktop.desktop included are

(process:1235027): Modes.DRun-DEBUG: 04:33:10.459: [org.telegram.desktop.desktop] Using file /home/slava/.local/share/flatpak/exports/share/applications/org.telegram.desktop.desktop.
(process:1235027): Modes.DRun-DEBUG: 04:33:10.459: [org.telegram.desktop.desktop] [/home/slava/.local/share/flatpak/exports/share/applications/org.telegram.desktop.desktop] Skipping, was previously seen.

which seems like the org.telegram.desktop.desktop was already taken from some place, but there is no indication of where was it taken from.

Using wayland display server protocol

  • No, I don't use the wayland display server protocol

I've checked if the issue exists in the latest stable release

  • Yes, I have checked the problem exists in the latest stable version
@vchslv13 vchslv13 added the bug label Mar 6, 2025
@DaveDavenport
Copy link
Collaborator

DaveDavenport commented Mar 6, 2025

It uses the file from the first entry

(process:1235027): Modes.DRun-DEBUG: 04:33:10.459: [org.telegram.desktop.desktop] Using file /home/slava/.local/share/flatpak/exports/share/applications/org.telegram.desktop.desktop.

'Using file' is printed at the point it adds it to the list.

Here it sees the file again (not sure why?) and then it skips it, as it already seen it.

(process:1235027): Modes.DRun-DEBUG: 04:33:10.459: [org.telegram.desktop.desktop] [/home/slava/.local/share/flatpak/exports/share/applications/org.telegram.desktop.desktop] Skipping, was previously seen.

Can you pastebin the desktop file?

@DaveDavenport
Copy link
Collaborator

Can I close this issue? it looks from the log it is working fine and I did not get any reaction anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants