GermainZ / xdg-desktop-portal-termfilechooser

xdg-desktop-portal backend for choosing files with your favorite file chooser
MIT License
80 stars 20 forks source link

How to correctly install? #3

Open levihb opened 2 years ago

levihb commented 2 years ago

Sorry but are there any better installation instructions?

It builds and installs correctly, apparently. But then nothing else works? E.g:

There's no man files so the suggested help command on the git doesn't work:

No manual entry for xdg-desktop-portal-termfilechooser

It doesn't seem to be installed to any normal place where PATH would check? So trying to run xdg-desktop-portal-termfilechooser --help doesn't work.

I assume that a service is needed? But I've tried running enable and start with systemctl, but it just doesn't find anything? How am I supposed to enable the services?

I'm very confused and unsure what to do here? If I try running enable with --user I just get:

The unit files have no installation config (WantedBy=, RequiredBy=, Also=,
Alias= settings in the [Install] section, and DefaultInstance= for template
units). This means they are not meant to be enabled using systemctl.

Are there any detailed installation instructions?

And by the way I love the idea of this project!

Edit: When trying to run Firefox with this, nothing happens when it tries to open the file browser, and it just prints this to the console:

(firefox:205665): Gtk-WARNING **: 19:41:31.817: Can't open portal file chooser: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.portal.Desktop was not provided by any .service files
Carlisle96 commented 2 years ago

I am in the same spot as you. Have you found an answer meanwhile ? There is a closed Issues report. but he already has the service running. How do I get there ?

boydaihungst commented 1 year ago

Install packges

Remove all packages start with xdg-desktop-portal- (eg: xdg-desktop-portal-kde or xdg-desktop-portal-gtk) . Install xdg-desktop-portal first then building and installing xdg-desktop-portal-termfilechooser.

# is you use Arch linux ----
yay -S xdg-desktop-portal-termfilechooser-git
#----
git clone https://github.com/boydaihungst/xdg-desktop-portal-termfilechooser.git
# if you use [lf](https://github.com/gokcehan/lf). Use this cmd: ----
git clone -b fix-for-lf https://github.com/boydaihungst/xdg-desktop-portal-termfilechooser.git
#----
cd xdg-desktop-portal-termfilechooser
meson build && ninja -C build && ninja -C build install

This fork fix multiple files selection. https://github.com/boydaihungst/xdg-desktop-portal-termfilechooser

Configuration

Put vifm-wrapper.sh/ranger-wrapper.sh/lf-wrapper.sh and config files to ~/.config/xdg-desktop-portal-termfilechooser/ folder After that, edit the config file to match your home path and choose the right wrapper above. NOTE: config file have to be absolute path. These wrappers use Kitty. You can modify it to work with other terminal. https://github.com/boydaihungst/xdg-desktop-portal-termfilechooser/blob/main/contrib/

Do one of the following

systemctl --user enable --now xdg-desktop-portal.service
systemctl --user enable --now xdg-desktop-portal-termfilechooser.service

Note: If you change config file above you need to restart service.

systemctl --user restart xdg-desktop-portal-termfilechooser.service
Carlisle96 commented 1 year ago

Thanks a lot boydaihungst.

I had given up on this, because I had noticed a lot of bugs. ( I do not fully remember if I did report them all. I will check out your fork tomorrow and make a list of things, if they aren't l fixed already by your fork.

Maybe these also help:

https://github.com/jarun/nnn/issues/1465 https://github.com/GermainZ/xdg-desktop-portal-termfilechooser/issues/4 https://github.com/jarun/nnn/issues/1466

I hope we can stay in contact and work together on getting everything perfectly figured out

boydaihungst commented 1 year ago

Thanks a lot boydaihungst.

I had given up on this, because I had noticed a lot of bugs. ( I do not fully remember if I did report them all. I will check out your fork tomorrow and make a list of things, if they aren't l fixed already by your fork.

Maybe these also help:

jarun/nnn#1465 #4 jarun/nnn#1466

I hope we can stay in contact and work together on getting everything perfectly figured out

Actually, my fork only fixed multiple selections #4. I have no other issues. Tested on ranger and vifm.

boydaihungst commented 1 year ago

Thanks a lot boydaihungst. I had given up on this, because I had noticed a lot of bugs. ( I do not fully remember if I did report them all. I will check out your fork tomorrow and make a list of things, if they aren't l fixed already by your fork. Maybe these also help: jarun/nnn#1465 #4 jarun/nnn#1466 I hope we can stay in contact and work together on getting everything perfectly figured out

Actually, my fork only fixed multiple selections #4. I have no other issues. Tested on ranger and vifm.

Perfect timing! I just found out about this today and noticed the multiple files issue right away. I'm using this script for urxvt/lf instead of kitty/ranger though:


#!/bin/sh
# This wrapper script is invoked by xdg-desktop-portal-termfilechooser.
#
# Inputs:
# 1. "1" if multiple files can be chosen, "0" otherwise.
# 2. "1" if a directory should be chosen, "0" otherwise.
# 3. "0" if opening files was requested, "1" if writing to a file was
#    requested. For example, when uploading files in Firefox, this will be "0".
#    When saving a web page in Firefox, this will be "1".
# 4. If writing to a file, this is recommended path provided by the caller. For
#    example, when saving a web page in Firefox, this will be the recommended
#    path Firefox provided, such as "~/Downloads/webpage_title.html".
#    Note that if the path already exists, we keep appending "_" to it until we
#    get a path that does not exist.
# 5. The output path, to which results should be written.
#
# Output:
# The script should print the selected paths to the output path (argument #5),
# one path per line.
# If nothing is printed, then the operation is assumed to have been canceled.

multiple="$1"
directory="$2"
save="$3"
path="$4"
out="$5"

cmd="/usr/bin/lf"
termcmd="${TERMCMD:-/usr/bin/urxvt}"
default_dir="/home/user"

if [ "$save" = "1" ]; then
    set -- -selection-path "$out" "$path" > "$path"
elif [ "$directory" = "1" ]; then
    set -- -last-dir-path "$out" "$default_dir"
elif [ "$multiple" = "1" ]; then
    set -- -selection-path "$out" "$default_dir"
else
    set -- -selection-path "$out" "$default_dir"
fi

"$termcmd" -title "Filepicker" -e $cmd "$@"
if [ "$save" = "1" ] && [ ! -s "$out" ]; then
    rm "$path"
fi

Does your fix apply to swapping out another terminal/file manager like this?

It should work with any terminal/file manager as long as you set right arguments for file manager. set -- -selection-path ... <== these arguments. I didn't use lf, so you have to test it for yourself. Use this link below to test. Just select 2 files and if "2 files selected" then it's working as expected. Test multiple files selection

Carlisle96 commented 1 year ago

@boydaihungst I have quickly checked your version and it fixes all my issues ( abort, no file selection, multiple file selection, savefile, renaming savefile, creating new savefile... )

I didn't test it over a longer period of time on my main machine yet but it is looking good. I will report back after some time when i find some issues.

Thanks a lot for your effort.

boydaihungst commented 1 year ago

Glad to hear that. I also fixed selection bug and updated script for lf. Use branch https://github.com/boydaihungst/xdg-desktop-portal-termfilechooser/tree/fix-for-lf

txtsd commented 1 year ago

@boydaihungst I've installed your fork on Arch, but everything that pulls up a file chooser still does so in nemo. I've set up my config and the service correctly, and also changed the defaults in mimeapps.list.

How do I debug this?

EDIT: Only firefox seems to open it correctly, and only after changing the relevant about:config keys.

boydaihungst commented 1 year ago

@boydaihungst I've installed your fork on Arch, but everything that pulls up a file chooser still does so in nemo. I've set up my config and the service correctly, and also changed the defaults in mimeapps.list.

How do I debug this?

EDIT: Only firefox seems to open it correctly, and only after changing the relevant about:config keys.

Can you show me result of pacman -Qs xdg-desktop-portal Maybe you forgot to remove xdg-...gtk or xdg-...kde package. By default to be able to installed xdg-desktop-portal in arch, you have to install of one of xdg...gtk, xdg...kde package. After install one of them, you can install my fork then you can remove that gtk,kde package.

txtsd commented 1 year ago

@boydaihungst

λ pacman -Qs xdg-desktop-portal
local/xdg-desktop-portal 1.15.0-1
    Desktop integration portals for sandboxed apps
local/xdg-desktop-portal-termfilechooser-git r4.71dc7ab-1
    xdg-desktop-portal backend for your favorite terminal file chooser
local/xdg-desktop-portal-wlr 0.6.0-1
    xdg-desktop-portal backend for wlroots

I'm supposed to remove xdg-desktop-portal-wlr? What about things that depend on -wlr?

boydaihungst commented 1 year ago

No. Don't remove wlr. My bad, Only kde or gtk need to be removed.

boydaihungst commented 1 year ago

@boydaihungst

λ pacman -Qs xdg-desktop-portal
local/xdg-desktop-portal 1.15.0-1
    Desktop integration portals for sandboxed apps
local/xdg-desktop-portal-termfilechooser-git r4.71dc7ab-1
    xdg-desktop-portal backend for your favorite terminal file chooser
local/xdg-desktop-portal-wlr 0.6.0-1
    xdg-desktop-portal backend for wlroots

I'm supposed to remove xdg-desktop-portal-wlr? What about things that depend on -wlr?

This is my mimetype:

[Default Applications]
inode/directory=ranger.desktop
x-directory/normal=ranger.desktop
application/x-gnome-saved-search=ranger.desktop

Look like they change from GTK_USE_PORTAL=1 to GDK_DEBUG=portals https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/4829 https://wiki.archlinux.org/title/Uniform_look_for_Qt_and_GTK_applications#Consistent_file_dialog

Try run app with env GDK_DEBUG=portals APP_NAME. if it works, put export GDK_DEBUG=portals in ~/.profile or ~/.bash_profile. Then Reboot

txtsd commented 1 year ago

This is my mimetype:

[Default Applications]
inode/directory=ranger.desktop
x-directory/normal=ranger.desktop
application/x-gnome-saved-search=ranger.desktop

Mine has these relevant lines:

inode/directory=ranger.desktop;nemo.desktop;pcmanfm-qt.desktop;pcmanfm.desktop;
x-scheme-handler/trash=ranger.desktop;nemo.desktop;pcmanfm.desktop;
application/x-directory=ranger.desktop

Since ranger.desktop is prioritized, it shouldn't matter imo.

Look like they change from GTK_USE_PORTAL=1 to GDK_DEBUG=portals

I'm aware of this. I've been launching GTK apps with GDK_DEBUG=portals appname to test them. Haven't rebooted yet since that shouldn't be necessary.

For an easy test case example:

GDK_DEBUG=portals zenity --file-selection

It pulls up a nemo file chooser.

boydaihungst commented 1 year ago

I tried your cmd, it's working fine. Not sure what is the problem here. 😓

txtsd commented 1 year ago

I will reboot tomorrow and report back. Thanks for your help so far.

txtsd commented 1 year ago

@boydaihungst Okay I did some testing.

So far, no gtk3 applications are able to "open files" with ranger, except firefox, thunderbird, and google-chrome. I have not changed any chrome specific settings.

Some gtk4 applications open up ranger, while some open up a GUI FM.

gtk4 apps that open ranger:

gtk4 apps that open GUI FM:

EDIT: The systemd service unit logs have a lot of these repeated:

Nov 18 15:02:02 dungeon-of-data xdg-desktop-portal-termfilechooser[84902]: dri_create_context: requested glthread but driver is missing backgroundCallable V2 extension
Nov 18 15:02:02 dungeon-of-data xdg-desktop-portal-termfilechooser[84902]: [322 15:02:02.818567] [glfw error 65544]: process_desktop_settings: failed with error: [org.freedesktop.DBus.Error.UnknownMethod] No such interface “org.freedesktop.portal.Settings” on object at path /org/freedesktop/portal/desktop
Nov 18 15:02:02 dungeon-of-data xdg-desktop-portal-termfilechooser[84902]: [322 15:02:02.990778] [PARSE ERROR] Unknown char after ESC: 0x6b
Nov 18 15:02:02 dungeon-of-data xdg-desktop-portal-termfilechooser[84902]: [322 15:02:02.990807] [PARSE ERROR] Unknown char after ESC: 0x5c
Nov 18 15:02:02 dungeon-of-data xdg-desktop-portal-termfilechooser[84902]: [322 15:02:02.990817] [PARSE ERROR] Unknown char after ESC: 0x6b
Nov 18 15:02:02 dungeon-of-data xdg-desktop-portal-termfilechooser[84902]: [322 15:02:02.990826] [PARSE ERROR] Unknown char after ESC: 0x5c
Nov 18 15:02:05 dungeon-of-data xdg-desktop-portal-termfilechooser[2516]: 2022/11/18 15:02:05 [ERROR] - failed to open /tmp/termfilechooser.portal

Not sure if this is related or not.

Dimfred commented 1 year ago

In my case I also had to add -r as an option to /usr/lib/xdg-desktop-portal

nani8ot commented 1 year ago

@txtsd Did you make it work? I'm trying to package it for NixOS but keep getting the same error as your last line.

Aug 01 01:17:11 nixron xdg-desktop-portal-termfilechooser[7330]: 2023/08/01 01:17:11 [ERROR] - failed to open /tmp/termfilechooser.portal
txtsd commented 1 year ago

@txtsd Did you make it work? I'm trying to package it for NixOS but keep getting the same error as your last line.

Aug 01 01:17:11 nixron xdg-desktop-portal-termfilechooser[7330]: 2023/08/01 01:17:11 [ERROR] - failed to open /tmp/termfilechooser.portal

Sorry, I couldn't get it to work reliably so I stopped using the portal.

YarochkinAnton commented 6 months ago

@txtsd @nani8ot

If you still have problems with "Save As" on Firefox. Check debug logs for ranger by adding arguments -d --logfile=/tmp/ranger.log to the ranger invocation in the ranger-wrapper.sh. Restart the portal and then try to repeat saving action in the Firefox. If /tmp/ranger.log contains something like this:

Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/ranger/core/main.py", line 201, in main
    fm.loop()
  File "/usr/lib/python3.10/site-packages/ranger/core/fm.py", line 377, in loop
    ui.redraw()
  File "/usr/lib/python3.10/site-packages/ranger/gui/ui.py", line 334, in redraw
    self.finalize()
  File "/usr/lib/python3.10/site-packages/ranger/gui/ui.py", line 391, in finalize
    DisplayableContainer.finalize(self)
  File "/usr/lib/python3.10/site-packages/ranger/gui/displayable.py", line 268, in finalize
    displayable.finalize()
  File "/usr/lib/python3.10/site-packages/ranger/gui/widgets/view_base.py", line 59, in finalize
    col_y = self.main_column.y + self.main_column.target.pointer \
AttributeError: 'NoneType' object has no attribute 'pointer'

change line 32 of the ranger-wrapper.sh and replace "$path" with --selectfile="$path"

paulcarroty commented 4 months ago

In case of wezterm+vifm the vifm-wrapper.sh must be improved:

termcmd="/usr/bin/wezterm"

# Wayland
env WAYLAND_DISPLAY=wayland-1 DISPLAY=  $termcmd start --always-new-process $cmd "$@"

# X11
env DISPLAY=:0  $termcmd start --always-new-process $cmd "$@"
poperigby commented 3 months ago

If anybody is having trouble getting this to work with Wezterm + Yazi, here's my working script:

multiple="$1"
directory="$2"
save="$3"
path="$4"
out="$5"
cmd="yazi"
termcmd="wezterm start --always-new-process"

if [ "$save" = "1" ]; then
    ARGS=--chooser-file="$out" #--cmd="echo Select save path (see tutorial in preview pane; try pressing zv or zp if no preview)" --selectfile="$path"
elif [ "$directory" = "1" ]; then
    ARGS=--cwd-file="$out" #--show-only-dirs --cmd="echo Enter directory (quit in dir to select it)"
elif [ "$multiple" = "1" ]; then
    ARGS=--chooser-file="$out" #--cmd="echo Select file(s) (open file to select it; <Space> to select multiple)"
else
    ARGS=--chooser-file="$out" #--cmd="echo Select file (open file to select it)"
fi

$termcmd $cmd $ARGS

if [ "$save" = "1" ] && [ ! -s "$out" ]; then
    /usr/bin/rm "$path"
fi
paulcarroty commented 3 months ago

@poperigby, great, worth create PR to https://github.com/boydaihungst/xdg-desktop-portal-termfilechooser as the most active fork.

poperigby commented 3 months ago

@poperigby, great, worth create PR to https://github.com/boydaihungst/xdg-desktop-portal-termfilechooser as the most active fork.

Done: https://github.com/boydaihungst/xdg-desktop-portal-termfilechooser/pull/2

exquo commented 3 months ago

Some notes to add to the instructions above:


EDIT: I have combined the comments in this thread into a PR for README with comprehensive installation instructions. Hope this helps the future users.

careb0t commented 1 month ago

@exquo Using the yazi wrapper that is included in the contrib directory of the fork you linked, it seems like choosing a single file or multiple files does not work? Opening the file doesn't actually upload it, it just opens the file. Then when I close yazi, it inputs tries to upload the cwd as a file. I've tried using both enter and o/O to open the files with yazi and none of them differ.

The save file and choose directory functionalities work absolutely fine however.

Is there some edit I could make to the wrapper file or something to get single/multiple file choosing to work? I absolutely love yazi and would love to use it as my systems default file selector but this is kind of a big issue.

EDIT: The only time I have been able to get choosing files to work is by using GTK_USE_PORTAL=1 with Firefox, but launching other programs such as Vivaldi or Discord (Equibop), the behavior I described above where the file just opens as normal occurs.

EDIT 2: I have done some testing with just yazi and running yazi --chooser-file /tmp/test.txt does output the correct path of the chosen file and does not open the file. This combined with the fact that only GTK_USE_PORTAL=1 firefox are the only times I have been able to get selecting a file to work properly makes me think that perhaps Vivaldi and Discord are giving incorrect inputs? I don't really know how I would go about confirming this.

exquo commented 1 month ago

@careb0t The inputs that the script receives can be observed by adding

set -x

to the top of your script (~/.config/xdg-desktop-portal-termfilechooser/yazi-wrapper.sh), and restarting the service

systemctl --user stop xdg-desktop-portal-termfilechooser.service
/usr/local/libexec/xdg-desktop-portal-termfilechooser -r &

Then test from another terminal window

GTK_USE_PORTAL=1  zenity --file-selection

In the first terminal window there will be output like this:

+ multiple=0
+ directory=0
+ save=0
+ path=
+ out=/tmp/termfilechooser.portal
+ cmd=yazi
...

A general note: for this tool to work with other programs, they need to support XDG Portals. Firefox does (with the modified settings), but Vivaldi and the Discord client might not.

Linguiniotta commented 2 weeks ago

I don't know where else to ask but, for those peeps using yazi with any terminal, how do you save with automatic name and file extension?

For reference I am using this [yazi-wrapper].sh(https://github.com/boydaihungst/xdg-desktop-portal-termfilechooser/blob/main/contrib/yazi-wrapper.sh), and whenever I press enter on the filechooser, it would just override (?) the highlighted file.

For example, if I press Download raw file from the link above, it would show the termfilechooser. In order to save, I have to manually create the file along with the file extension. If I simply press Enter, say on a directory /tmp/try, my download history shows a download of the try with 1 bytes. The directory would then be inaccessible [/tmp/try/hUt1n9fR.txt.part: Permission denied (os error 13)]

What am I doing wrong?

systemctl --user status xdg-desktop-portal-termfilechooser.service

Sep 09 19:28:53 pcpcpc xdg-desktop-portal-termfilechooser[37128]: + cmd=/usr/bin/yazi
Sep 09 19:28:53 pcpcpc xdg-desktop-portal-termfilechooser[37128]: + termcmd=/usr/bin/kitty
Sep 09 19:28:53 pcpcpc xdg-desktop-portal-termfilechooser[37128]: + '[' 1 = 1 ']'
Sep 09 19:28:53 pcpcpc xdg-desktop-portal-termfilechooser[37128]: + ARGS=--chooser-file=/tmp/termfilechooser.portal
Sep 09 19:28:53 pcpcpc xdg-desktop-portal-termfilechooser[37128]: + /usr/bin/kitty -- /usr/bin/yazi --chooser-file=/tmp/termfilechooser.portal
Sep 09 19:28:53 pcpcpc xdg-desktop-portal-termfilechooser[37129]: [0.192] [glfw error 65544]: process_desktop_settings: failed with error: [org.freedesktop.DBus.Error.UnknownMethod] No such interface “org.freedesktop.portal.Settings” on object at path /org/freedesktop/portal/desktop
Sep 09 19:29:31 pcpcpc xdg-desktop-portal-termfilechooser[37128]: + '[' 1 = 1 ']'
Sep 09 19:29:31 pcpcpc xdg-desktop-portal-termfilechooser[37128]: + '[' '!' -s /tmp/termfilechooser.portal ']'
Sep 09 19:29:31 pcpcpc xdg-desktop-portal-termfilechooser[37128]: + /usr/bin/rm /tmp/yazi-wrapper.sh
Sep 09 19:29:31 pcpcpc xdg-desktop-portal-termfilechooser[5169]: 2024/09/09 19:29:31 [ERROR] - could not execute /home/linguin/.config/xdg-desktop-portal-termfilechooser/yazi-wrapper.sh 0 0 1 "/tmp/yazi-wrapper.sh" "/tmp/termfilechooser.portal": 2
exquo commented 2 weeks ago

@Linguiniotta It's pretty ridiculous that the discussion of any issue with termfilechooser happens by adding more comments to this thread. Hopefully someone will take up maintaining this software, which would provide a proper mechanism for new issues, etc.


Anyway, for your problem, looking at the line

yazi-wrapper.sh 0 0 1

it seems the filename argument doesn't get passed to the script. It should be the next argument after 0 0 1; see comments in the yazi-wrapper script itself on the input values, and also my comment above about adding set -x and observing the script's inputs.

I don't know why this would happen.. But you can experiment with this command

GTK_USE_PORTAL=1  zenity --file-selection --save --filename /tmp/test.save

It should open yazi, create the file in /tmp/test.save and focus the curnsor in yazi on it.

Linguiniotta commented 2 weeks ago

For some reason that command opens a GTK (class: zenity, title: zenity) save dialog with pre-filled Name test.save. If I however, try saving this webpage in Firefox launched with env GTK_USE_PORTAL=1 firefox using Ctrl + S it brings up the yazi wrapper. Could this have something to do with zenity? Below is the output of the command.

GTK_USE_PORTAL=1 zenity --file-selection --save --filename /tmp/test.save

(zenity:108426): Adwaita-WARNING **: 13:25:29.914: Using GtkSettings:gtk-application-prefer-dark-theme with libadwaita is unsupported. Please use AdwStyleManager:color-scheme instead.
Gtk-Message: 13:25:30.060: GtkDialog mapped without a transient parent. This is discouraged.

xdg-desktop-portal-termfilechooser.service if I press Ctrl + S

No generated file /tmp/test.save + yazi opens in my $HOME directory not in /tmp/

Sep 13 13:19:33 pcpcpc xdg-desktop-portal-termfilechooser[106691]: + cmd=/usr/bin/yazi
Sep 13 13:19:33 pcpcpc xdg-desktop-portal-termfilechooser[106691]: + termcmd=/usr/bin/kitty
Sep 13 13:19:33 pcpcpc xdg-desktop-portal-termfilechooser[106691]: + '[' 1 = 1 ']'
Sep 13 13:19:33 pcpcpc xdg-desktop-portal-termfilechooser[106691]: + ARGS=--chooser-file=/tmp/termfilechooser.portal
Sep 13 13:19:33 pcpcpc xdg-desktop-portal-termfilechooser[106691]: + /usr/bin/kitty /usr/bin/yazi --chooser-file=/tmp/termfilechooser.portal
Sep 13 13:19:34 pcpcpc xdg-desktop-portal-termfilechooser[106692]: [0.191] [glfw error 65544]: process_desktop_settings: failed with error: [org.freedesktop.DBus.Error.UnknownMethod] No such interface “org.freedesktop.portal.Settings” on object at path /org/freedesktop/portal/desktop
Sep 13 13:19:34 pcpcpc xdg-desktop-portal-termfilechooser[106691]: + '[' 1 = 1 ']'
Sep 13 13:19:34 pcpcpc xdg-desktop-portal-termfilechooser[106691]: + '[' '!' -s /tmp/termfilechooser.portal ']'
Sep 13 13:19:34 pcpcpc xdg-desktop-portal-termfilechooser[106691]: + /usr/bin/rm '/tmp/How to correctly install_ · Issue #3 · GermainZ_xdg-desktop-portal-termfilechooser.html'
Sep 13 13:19:34 pcpcpc xdg-desktop-portal-termfilechooser[106528]: 2024/09/13 13:19:34 [ERROR] - could not execute /home/linguin/.config/xdg-desktop-portal-termfilechooser/yazi-wrapper.sh 0 0 1 "/tmp/How to correctly install_ · Issue #3 · GermainZ_xdg-desktop-portal-termfilechooser.html" "/tmp/termfilechooser.portal": 2
lines 17-36/36 (END)
Dimfred commented 4 days ago

@Linguiniotta have you checked whether zenity supports portals? It has to be implemented by the program, talking to the portal, in thise case zenity.