Skip to content

Commit

Permalink
* Release 1.1.3
Browse files Browse the repository at this point in the history
* Fix UnixInputStream cast warning
* Update screenshots
  • Loading branch information
donadigo committed Dec 18, 2021
1 parent 6af82e3 commit c98cda7
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Binary file modified Screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion com.github.donadigo.appeditor.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down
5 changes: 5 additions & 0 deletions data/com.github.donadigo.appeditor.appdata.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@
</screenshot>
</screenshots>
<releases>
<release version="1.1.3" date="2021-12-18">
<description>
<p>This release updates AppEditor for elementary OS 6.1.</p>
</description>
</release>
<release version="1.1.2" date="2021-12-18">
<description>
<p>This release makes AppEditor available on elementary OS 6.0.</p>
Expand Down
9 changes: 2 additions & 7 deletions src/DesktopApp.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, GLib.Variant> (null, null));
portal.open_file ("", new UnixInputStream(fd, true), new GLib.HashTable<string, GLib.Variant> (null, null));
}
} catch (Error e) {
stream.close ();
throw e;
}

stream.close ();
}

public bool get_only_local () {
Expand Down

0 comments on commit c98cda7

Please sign in to comment.