-
Notifications
You must be signed in to change notification settings - Fork 22
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
Make file: URLs work in command line so that %u in the desktop file works as advertised #121
Comments
Hmm, well, the substitution of %u with file:///home/[MYUSERNAME]/Downloads/[MYFILE].ics was done correctly and the file: URL is also correct. The issue if that TB/BB apparently cannot open an ICS file when invoked with the file as argument. What happens if you chance the .desktop file to
Apparently there is a So it should be |
@mfschumann - do you have an opinion here? Did |
So I guess my question is: What file types is Betterbird supposed to open apart from ICS? Do they all work with |
Yes it works
Yes
Yes,
Both |
In reply to @mfschumann: Do LO use the .dektop file? They just have their own more or less hard-coded invocation with I guess you can also lauch with .eml files, like so on WIndows:
This The ICS handling code is here: That said, one would also need to see was Linux does with the .desktop file and under which circumstances the Exec directive is used. In reply to @875d: On Windows |
It should be used by every software that abides by the XDG Desktop Entry Specification. I use a tiling window manager with It would be worthwhile to see how GNOME or KDE substitute the %u, provided the specification says it can be substituted with file: URL legitimately. |
It looks like it removed the |
Well, it messed up the file: URL completely. Yes, it would be easier to change to %f, but as you rightly pointed out, the "contract" is that you can pass a (file:) URL and it should "just work"(TM). Anyway, not a terribly urgent problem since you can just change the .desktop file. |
Well we can have a new contract with the %f option. Yes it is not urgent at all. But the .desktop file will be overwritten when you update the software or you reinstall it (e.g. if you have to format). If time passes between update / reinstalling, you can forget what was the problem. Anyway I love how you take it "more seriously" and just doesn't discard it as "never matter" :) |
%f and -file %f already works, no "new contract" needed. Personally, I find the entire matter annoying, I mean, that you need try and error to see what works. |
File path works, file URL: does not work. You need to try because there is a bug: TB/BB claim to support something which they don't support (i.e. file URL:). It they claimed to support only file path there wouldn't be no problem. |
Should be fixed in 167afd4 Please do me a favour: Adjust the upstream bug accordingly and paste the link to the patch. The upstream bug is invalid as it stands since TB do not provide the desktop file. The bug really is that file: URLs don't work. |
So who provides the desktop file? I installed Thunderbird from Arch official repo. There was a desktop file in it. Who provided it? |
AFAIK they don't use the .desktop file. To my understanding the .desktop file is used when Betterbird is set as default file handler for some file type and a file of that type is double clicked or dragged onto the Betterbird icon. If .eml and .ics files are the only items where it makes sense to set Betterbird as default file handler, it should be safe to change |
Arch/AUR do. P.S.: @875d - please adjust the upstream bug. |
Oh, I see. Something like magnet link? The Mimetype in the desktop file says:
so
Ok, so I have to put up with the Arch maintainer |
Well, they mostly copy our .desktop file here: I can add that and let the AUR maintainer know. |
I updated the upstream bug to point to the patch and this issue. Thanks. |
Yes, please add the mimetype for ics file. Thanks. |
Done. @Posi81: Please note the change to the .desktop file and adjust accordingly in AUR. |
Thanks. You could consider doing "Edit Bug" and changing the summary/title since they don't ship any desktop files. Something like: |
Oh we have the AUR package maintainer here? |
Done. Thanks. |
Yes, we do, but I talk to him privately about new releases. All in good hands. |
Hi there :-) |
In
/usr/share/applications/betterbird.desktop
, the Exec directive says:The "XDG Desktop Entry Specification" states that "%u" is "A single URL. Local files may either be passed as file: URLs or as file path. ".
However, Betterbird does not seem to support "file: URLs" paths.
In fact, I use mimeo as my file opener.
When I configure it to open .ics files with Betterbird, it calls:
and Betterbird stalls and doesn't start.
So I think the "%u" in the desktop file should be "%f", which is described by the specification as "A single file name (including the path)", which is what Betterbird seems to support.
Upstream bug.
The text was updated successfully, but these errors were encountered: