diff --git a/Screenshot.png b/Screenshot.png index 86732c7..3f42d95 100644 Binary files a/Screenshot.png and b/Screenshot.png differ diff --git a/com.github.donadigo.appeditor.json b/com.github.donadigo.appeditor.json index 5dc5aaf..264edfe 100644 --- a/com.github.donadigo.appeditor.json +++ b/com.github.donadigo.appeditor.json @@ -1,7 +1,7 @@ { "app-id": "com.github.donadigo.appeditor", "runtime": "io.elementary.Platform", - "runtime-version": "6", + "runtime-version": "6.1", "sdk": "io.elementary.Sdk", "command": "appeditor-wrapper", "finish-args": [ diff --git a/data/com.github.donadigo.appeditor.appdata.xml.in b/data/com.github.donadigo.appeditor.appdata.xml.in index 79f4603..4b7c4ee 100644 --- a/data/com.github.donadigo.appeditor.appdata.xml.in +++ b/data/com.github.donadigo.appeditor.appdata.xml.in @@ -31,6 +31,11 @@ + + +

This release updates AppEditor for elementary OS 6.1.

+
+

This release makes AppEditor available on elementary OS 6.0.

diff --git a/src/DesktopApp.vala b/src/DesktopApp.vala index 638ea0c..7c24ad1 100644 --- a/src/DesktopApp.vala +++ b/src/DesktopApp.vala @@ -78,20 +78,15 @@ public class AppEditor.DesktopApp : Object { public void open_default_handler () throws Error { // Gtk.show_uri_on_window does not seem to fully work in a Flatpak environment // so instead we directly call the freedesktop OpenURI DBus interface instead. - var file = File.new_for_path (info.get_filename ()); - InputStream ios = file.read (); - var stream = new UnixInputStream (((UnixInputStream)ios).get_fd (), true); + int fd = Posix.open (info.get_filename (), Posix.O_RDONLY); try { var portal = get_desktop_portal (); if (portal != null) { - portal.open_file ("", stream, new GLib.HashTable (null, null)); + portal.open_file ("", new UnixInputStream(fd, true), new GLib.HashTable (null, null)); } } catch (Error e) { - stream.close (); throw e; } - - stream.close (); } public bool get_only_local () {