bleakgrey/tootle

Clic on picture launch Gimp

pirboazo opened this issue · 3 comments

⚠️ Please try to fill in every blank. Keep the information clear and concise.

What should happen:

Just open a visualisation of picture

What happened instead:

When i clic on picture tootle open the image in GIMP

How to reproduce:

1.clic on picture

Screenshots (if applicable):

__

Build context:

  • Distro: Nixos 21.05
  • App version: __
  • Build type: from source by : Will Dietz w@wdtz.org

Logs:

** Message: 12:13:45.211: Desktop.vala:48: Downloading file: https://files.mastodon.social/media_attachments/files/107/331/710/690/490/537/original/e51c14596ca9f173.jpg...
** Message: 12:13:45.306: Desktop.vala:78: OK: File written to: /home/pboizot/Downloads/Tootle/files.mastodon.social/3620359787e51c14596ca9f173.jpg
** Message: 12:13:45.306: Desktop.vala:11: Opening URI: file:///home/pboizot/Downloads/Tootle/files.mastodon.social/3620359787e51c14596ca9f173.jpg

Additional info (if needed):

If i change the default application it's OK
Use the default application seem not a good idea

I'm running nixOS 21.11 but not running gnome, and run into something similar. I get a dialog with Operation not supported. I think it's something with the URI and how vala handles that?

Irick commented

This is an OS MIME type issue. You can fix it by changing the OS's default application for the relevant image file types (image/jpeg and image/png most likely). These settings can get a bit mangled when applications decide to grab them during their initial installation. Mine defaulted to WINE's internet browser for some reason.

hmmm, interesting. I have xdg-open <png/jpg> working, but tootle still fails. I'm not sure how to view the tootle log if it's saved anywhere. Which method for interacting with MIME types does tootle use, perhaps the software it requires isn't installed on NixOS?