-
Notifications
You must be signed in to change notification settings - Fork 35
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
XdgDesktopFile: Adds Exec fallback when DBusActivatable fails #80
Conversation
We fallback to use the Exec key when the DBusActivatable fails. Closes lxqt/lxqt#967.
gtm |
I was also considering this, but it violates the specification "If the value is true then implementations should ignore the Exec key and send a D-Bus message to launch the application." |
@palinek But the specification also says:
|
But we do. |
Yes. But how do libqtxdg determine if a given environment understands or not |
Libqtxdg is the environment/implementation here, not? |
Sure. Not exactly what I meant. We strictly follow the standard and get a fail (user viewpoint). |
From user point of view it is definitely better to try the Let's do it. But IMO it has to be documented somehow (comment in code, readme?), that we are violating the standard for a good reason. |
@palinek I do agree with the documentation). Will write it. |
473c03e
to
d019654
Compare
It's a bit too verbose... But the fallback is executed for whatever "fail" reason (no dbus at all, not properly configured the dbus service for the applicaion...), not only the invalid name. |
@palinek It's verbose, but IMO it deserves a very good explanation. |
Hm... why? From end user POI it doesn't matter what triggered the error. With my previous note I proposed a change in comment/doc, not the change of the previous logic. |
@palinek I inferred from your word that you only agreed in doing it in that special case |
Sorry for confusing you 😄 |
We are deliberately violating the standard. The minimum we can do is to document it properly.
9dcc986
to
29652fb
Compare
@palinek No problem. Updated. |
GTM. |
GTM |
We fallback to use the Exec key when the DBusActivatable fails.
Closes lxqt/lxqt#967.