bleakgrey / tootle

GTK-based Mastodon client for Linux
GNU General Public License v3.0
404 stars 62 forks source link

Clic on picture launch Gimp #342

Open pirboazo opened 2 years ago

pirboazo commented 2 years ago

⚠️ 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:

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

Chickensoupwithrice commented 2 years ago

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 2 years ago

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.

Chickensoupwithrice commented 1 year ago

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?