-
Notifications
You must be signed in to change notification settings - Fork 5k
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
open files ignore xdg-mime settings #17064
Comments
tdesktop uses glib library that implements XDG specification to open files. If you think it works incorrectly, file a bug for glib. |
that was my first thought. but I came here because, in fact, the problem turned out to be reproducible only in telegram. I tried a statically compiled binary from a github and the problem repeated there. I think the reason lies somewhere in the code of the telegrams itself. |
It's reproducible only in Telegram because you don't use non-KDE applications, I guess. Also, as far as I know, openSUSE patches Firefox to use KDE's mime system rather than glib's XDG implementation. Try Firefox build from Mozilla's website and I'm sure you will see the same behavior. |
I can say that it's impossible. Telegram doesn't impelement any logic to find a program by itself. All is done using glib's GAppInfo. |
Or try to open a file in any program from flatpak. Portals use glib, too (unless openSUSE patches them as well). |
ok |
for newcomers, I will leave a hint on how to temporarily solve the problem:
ex:
you will have to do it by hand for all the types of files you are interested in until the mazols bring you to the grave. |
It seems to me the actual bug is in xdg-mime. glib implements XDG spec in the right way, but xdg-mime calls DE-specific binaries for some reason. And, apparently, in KDE, since they violate the XDG spec. |
Steps to reproduce
Expected behaviour
pdf open in okular, text open in kate, etc
Actual behaviour
pdf open in libreoffice, text open in WINE NOTEPAD.EXE!!!
however, if you open from the file manager or any other application, then the files open as expected
Operating system
openSUSE Tumbleweed Plasma
Version of Telegram Desktop
https://build.opensuse.org/package/show/home:Dead_Mozay:telegram/telegram-desktop
Installation source
Other (unofficial) source
Logs
The text was updated successfully, but these errors were encountered: