Page MenuHomeLubuntu Development

Update mimeapps.list
Closed, ResolvedPublic

Description

While testing T59 I found that xdg-email produced strange results because Trojita was not in the mimeapps.list for x-scheme-handler/mailto. It looks like a couple of others may be missing too. For example, I didn't see application/x-bittorrent;x-scheme-handler/magnet; which should be set to Qtransmission.

Event Timeline

kc2bez triaged this task as Normal priority.Jul 16 2019, 6:51 AM
kc2bez created this task.
kc2bez renamed this task from Update mimeapps.list. to Update mimeapps.list.Sat, Jul 27, 12:08 PM
kc2bez added a project: Development Team.

The mimeapps.list has been updated and is now in eoan. It would be great if we could get some tests. @guiverc @wxl

  • Testing MAGNET LINKS (note: done on two boxes; d780 [upgraded last fri-sat] & d960 [fulyl-upgraded]

I haven't used magnet links before, and as gov.au restricts most torrent sites I used tor browser to find one. Searched for piratebay, did a search for 'linux' & selected first torrent it found. Lots of issues with weird pages opening stopped with noscript. I didn't get the reaction here that I expected... I did find a magnet link though (so copied magnet link).

xdg-open magnet:?xt=urn:.... from terminal on both boxes opened qTransmission and started a torrent with random-string-name, which sat there awhile, then changed to a name matching selected 'torrent' (& size). I noted "Magnetized transfer - retrieving metadata' on second box during the wait. I cancelled/deleted download the moment peers were discovered.

Using firefox I was unable to find a real magnet link (using startpage), but when the magnet link found earlier was entered into URL line it opened Qtransmission in same manner as described from terminal. I also tried chromium on d960 box but it only opened startpage with search for magnet:?xt=...

  • EMAIL

at terminal xdg-email guiverc@ubuntu.com and on both boxes opened Trojita (settings for first setup) as I don't use either 19.10 box for smtp/imap mail. I suspect this is expected behavior, but don't know.

If there are flaws, or more is required - please let me know.

( The longer log of what I did - https://docs.google.com/document/d/1DKg3ppTvCGWZ-YeG03DmYesdWZfEp6r9GD1dswIae2E/edit?usp=sharing )

@guiverc On our Download page, we have also magnet links. I hope it is not blocked by your government.

Your response got a HUGE howl of laughter when I read it @apt-ghetto, followed very quickly by the reddest face possible....

Transferring @wxl 's comment on the commit here into the task with my replies in bold:

Need a little help to test the whole suite, but there were no failures for what I could find.

  • application/vnd.debian.binary-package=org.kde.discover.desktop
  • application/vnd.flatpak=org.kde.discover.desktop
    • got any suggestions to test this with?
    • This mimetype is for built flatpaks, not necessarily ones hosted in a repo. I don't have a good example file and it probably isn't necessary to build one just to test.
  • application/vnd.flatpak.ref=org.kde.discover.desktop
  • application/vnd.flatpak.repo=org.kde.discover.desktop
  • application/x-bittorrent=transmission-qt.desktop
  • application/x-cue=org.kde.k3b.desktop
  • application/x-k3b=org.kde.k3b.desktop
    • got any suggestions to test this with?
    • This is for a k3b project file. I created a project in k3b with some files and directories and saved it as lubuntu_test.k3b. It has a mimetype of x-k3b. xdg-open calls k3b correctly but k3b barks loudly because I don't have an optical drive and fails to open the project. The project does seem to open if I close the error dialogs and open it through the normal file menu.
  • x-content/blank-cd=org.kde.k3b.desktop
    • not in the mood to play with passthrough in vbox right now
    • physical media is surely declining. I don't have much with an optical drive anymore myself.
  • x-content/blank-bd=org.kde.k3b.desktop
    • not in the mood to play with passthrough in vbox right now
    • physical media is surely declining. I don't have much with an optical drive anymore myself.
  • x-content/blank-hddvd=org.kde.k3b.desktop
    • not in the mood to play with passthrough in vbox right now
    • physical media is surely declining. I don't have much with an optical drive anymore myself.
  • x-content/blank-dvd=org.kde.k3b.desktop
    • not in the mood to play with passthrough in vbox right now
    • physical media is surely declining. I don't have much with an optical drive anymore myself.
  • x-scheme-handler/apt=org.kde.discover.apt.urlhandler.desktop
    • are these even a thing anymore?
    • Apparently yes. xdg-open apt:supertux seems to launch discover. I have no idea how prevalent they are. More info here
  • x-scheme-handler/magnet=transmission-qt.desktop
    • used the [Lubuntu 19.04 magnet](magnet:?xt=urn:btih:88c3a3917cf34385e08ab1f1c88c8c80fc8d0188&dn=lubuntu-19.04-desktop-amd64.iso&tr=http%3A%2F%2Ftorrent.ubuntu.com%3A6969%2Fannounce)
  • x-scheme-handler/mailto=trojita.desktop
  • x-scheme-handler/snap=org.kde.discover.snap.urlhandler.desktop
  • x-scheme-handler/vnd.libreoffice.cmis=libreoffice-startcenter.desktop
      • got any suggestions to test this with?
    • ** Like all things on the Internet I landed in a rabbit hole . I don't have a sharepoint thingy to test it with but I can sure see some value in that.

This next group is a bit of grey area. Some of these may be legacy holdouts. Some of these are x-NAME. The x-NAME ones are unregistered mimetypes, that doesn't mean they are unaccepted however. If they are widely used or have been widely used they are acceptable according to the standard. I honestly don't have examples to try offhand but they seem like they should be included.

  • application/x-iso=org.kde.k3b.desktop
    • our ISOs are application/cd-image so got any suggestions to test this with?

PDF's often get mis-classified from what I have read (though I don't have any ready examples) application/pdf is the norm but there can be some legacy holdouts.

  • application/x-pdf=qpdfview.desktop
    • I can only find application/pdf so got any suggestions to test this with?
  • image/pdf=qpdfview.desktop
    • I can only find application/pdf so got any suggestions to test this with?
  • image/x-pdf=qpdfview.desktop
    • I can only find application/pdf so got any suggestions to test this with?
  • text/pdf=qpdfview.desktop
    • I can only find application/pdf so got any suggestions to test this with?
  • text/x-pdf=qpdfview.desktop
    • I can only find application/pdf so got any suggestions to test this with?

By the way, xdg-mime query filetype /path/to/file will help determine the MIME type and, of course, xdg-open /path/to/file can open it.

I appreciate your extensive testing on this.

guiverc added a comment.EditedWed, Jul 31, 11:09 PM

Opened k3b & created a favorites.k3b file with some my local mp3 directory (data project). Exited k3b.
Using pcmanfm-qt found the favorites.k3b file, it opened correctly in k3b

re: x-content/blank-cd=org.kde.k3b.desktop ..

I inserted a blank CDr and a window appears "Removable medium is inserted" asking me if I want to open in Xfburn|K3b|CD/DVD Creator/Open in file manager -- (sorry my box has xubuntu, ubuntu & ubuntu-mate desktops as well.) K3b was highlighted, I click OK.
K3b opened (along with [title] "Error - K3b" [error message] "Could not open Document". I clicked OK. and I have an empty k3b with "Empty CD-R medium" message & specs for my drive. (I exited k3b)

I inserted a blank DVDr and a window appears "Removable medium is inserted" asking me if I want to open in K3b|CD/DVD Creator/Open in file manager. K3b is highlighted so I click OK.
K3b opened (along with [title] "Error - K3b" [error message] "Could not open document". I clicked ok and I have an empty k3b with "Empty DVD-R medium" message & specs for my drive. (I exited k3b)

The error messages possibly occur on every insert of blank media; it's been too long since I used cd/dvd's. The above was on my primary d960 box; I walked a cdr to the d780 & inserted it (19.10 updated; but Lubuntu only!) and it's options were "K3b/Open in file manager" only, but on clicking OK I had the same error message which I suspect isn't new or an issue (we don't yet have an project/document defined..) and k3b opened ready..

wxl added a comment.Wed, Jul 31, 11:16 PM

I found a application/vnd.flatpak from endless-sky, though I understand I could have just done flatpak build-bundle with one of the many flatpak repos I found. It worked as expected.

wxl added a comment.Wed, Jul 31, 11:18 PM

That means that what we have left is:

  • blank Blueray
  • blank HD DVD
  • Share Point thingy
  • an alternate ISO
  • a bunch of alternate options for PDFs

I am inclined to safely call this done and will comment accordingly on the differential revision.

wxl added a comment.Wed, Jul 31, 11:20 PM

Oh, wait, that was a commit and not a differential. Ok, that's cool. ๐Ÿ˜„ Now assumedly you need me to sponsor it, eh? ๐Ÿ˜†

wxl added a comment.Wed, Jul 31, 11:23 PM

Ok, I guess I'm tired. It's already in the repos. Why did I bother testing again? LOL!

kc2bez closed this task as Resolved.Thu, Aug 1, 12:25 PM
In T91#1605, @wxl wrote:

Oh, wait, that was a commit and not a differential. Ok, that's cool. ๐Ÿ˜„ Now assumedly you need me to sponsor it, eh? ๐Ÿ˜†

I uploaded it so I think we are good with that.

In T91#1606, @wxl wrote:

Ok, I guess I'm tired. It's already in the repos. Why did I bother testing again? LOL!

To check my work I guess. I appreciate all the time you put into it. Most importantly, I think it can help with T59

In T91#1604, @wxl wrote:

I am inclined to safely call this done and will comment accordingly on the differential revision.

I agree. So I will close it out.