When I install the old version of marktext (v0.17.1) from the NixOS repo, it works fine. But when I try and use either the appimage from the latest release (v0.17.5) or use the below flake, I get the following error:
ERROR:object_proxy.cc(623)] Failed to call method: org.freedesktop.DBus.Properties.Get: object_path= /org/freedesktop/portal/desktop: org.freedesktop.DBus.Error.InvalidArgs: No such interface “org.freedesktop.portal.FileChooser”
[26948:0806/213601.725319:ERROR:select_file_dialog_impl_portal.cc(243)] Failed to read portal version property
[26997:0806/213601.945824:ERROR:sandbox_linux.cc(377)] InitializeSandbox() called with multiple threads in process gpu-process.
{ appimageTools, fetchurl, lib }:
let
pname = "marktext";
version = "v0.17.5";
src = fetchurl {
url = "https://github.com/jacobwhall/marktext/releases/download/${version}/marktext-x86_64.AppImage";
sha256 = "kj/A3V6KGM8adw/8hyZfCO/BC8no2+cm961HhekEgu8=";
};
in
appimageTools.wrapType2 {
inherit pname version src;
profile = ''
export LC_ALL=C.UTF-8
'';
multiPkgs = null; # no 32bit needed
extraPkgs = p: (appimageTools.defaultFhsEnvArgs.multiPkgs p) ++ [
p.libsecret
p.xorg.libxkbfile
];
meta = with lib; {
description = "A simple and elegant markdown editor, available for Linux, macOS and Windows.";
homepage = "https://marktext.app";
license = licenses.mit;
maintainers = with maintainers; [ nh2 ];
platforms = [ "x86_64-linux" ];
};
}
Since the package from the NixOS repo works fine and I get the exact same error whether I use the flake or download and run the appimage, it makes me wonder if appimages could be restricted from accessing xdg-desktop-portal-termfilechooser like the version from the NixOS repo is able to.
Also, since the old marktext github page has been abandoned since 2022, would it be better if the version in the NixOS repo were updated to pull from jacobwhall/marktext? He said he’d do his best to keep up with PRs but would be somewhat limited in regards to maintaining it if I understand correctly, That said, of all the successors, it has the most stars on github. Thoughts?