Import a file to joplin-flatpak don't open a dialog box

I’ve opened a post on the Joplin forum because I can’t import an “enex” file into the Joplin-flatpak application.
It appears that the problem only occurs in the Cinnamon version of Manjaro.
The problem seems to be linked to flatpak’s use of XDG Destop portal. I have the “xdg-desktop-portal, xdg-desktop-portal-gtk and xdg-desktop-portal-xapp” packages installed on my system.
Can anyone help me solve this problem?

If you are not familiar with Flatpaks, their isolation, etc.
Then why not use a non-containerized version?
(joplin and joplin-desktop are both in the AUR)

https://wiki.archlinux.org/title/Joplin

I’d like to understand why Joplin-flatpak works in Manjaro-KDE or Linux Mint and not in Manjaro Cinnamon.

Configuration.

https://wiki.archlinux.org/title/Flatpak

Given you have multiple portals installed … maybe you need to configure that?

~/.config/portals.conf

[preferred]
# Use xdg-desktop-portal-gtk for every portal interface...
default=gtk
# Or fall back to xapp
org.freedesktop.impl.portal.Settings=gtk;xapp;

Also, it may make sense to check on the services;

systemctl --user status xdg-desktop-portal xdg-desktop-portal-gtk
1 Like

I added a “portals.conf” file in the ~/.config folder as you told me and rebooted my PC. But that didn’t solve the problem.
“xdg-desktop-portal.service” is active but “xdg-desktop-portal-gtk.service” is inactive.

That seems a problem.

What was the actual output?

systemctl --user status xdg-desktop-portal xdg-desktop-portal-gtk

They should both be running.

Maybe we should also check your packages, just in case;

pacman -Qs portal

I suppose also as a test you can start the service and check the functionality of joplin again;

systemctl --user start xdg-desktop-portal-gtk
pacman -Qs portal
local/libportal 0.7.1-1
    GIO-style async APIs for most Flatpak portals
local/libportal-gtk3 0.7.1-1
    GIO-style async APIs for most Flatpak portals - GTK 3 backend
local/xdg-desktop-portal 1.18.0-2
    Desktop integration portals for sandboxed apps
local/xdg-desktop-portal-gtk 1.14.1-3
    A backend implementation for xdg-desktop-portal using GTK
local/xdg-desktop-portal-xapp 1.0.3-2
    A backend implementation for xdg-desktop-portal using GTK and various pieces of Cinnamon/MATE/Xfce4 infrastructure
systemctl --user status xdg-desktop-portal xdg-desktop-portal-gtk
● xdg-desktop-portal.service - Portal service
     Loaded: loaded (/usr/lib/systemd/user/xdg-desktop-portal.service; static)
     Active: active (running) since Mon 2023-10-30 03:05:36 CET; 17min ago
   Main PID: 3198 (xdg-desktop-por)
      Tasks: 5 (limit: 38381)
     Memory: 7.7M
        CPU: 67ms
     CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/xdg-desktop-portal.service
             └─3198 /usr/lib/xdg-desktop-portal

oct. 30 03:05:35 msi-x370 systemd[2836]: Starting Portal service...
oct. 30 03:05:35 msi-x370 xdg-desktop-por[3198]: Choosing xapp.portal for org.freedesktop.impl.portal.Lockdown via the deprecated UseIn key
oct. 30 03:05:35 msi-x370 xdg-desktop-por[3198]: The preferred method to match portal implementations to desktop environments is to use the portals.conf(5) configuration file
oct. 30 03:05:36 msi-x370 xdg-desktop-por[3198]: No skeleton to export
oct. 30 03:05:36 msi-x370 xdg-desktop-por[3198]: Choosing xapp.portal for org.freedesktop.impl.portal.Inhibit via the deprecated UseIn key
oct. 30 03:05:36 msi-x370 systemd[2836]: Started Portal service.

● xdg-desktop-portal-gtk.service - Portal service (GTK/GNOME implementation)
     Loaded: loaded (/usr/lib/systemd/user/xdg-desktop-portal-gtk.service; static)
     Active: active (running) since Mon 2023-10-30 03:22:41 CET; 8s ago
   Main PID: 8635 (xdg-desktop-por)
      Tasks: 6 (limit: 38381)
     Memory: 9.3M
        CPU: 72ms
     CGroup: /user.slice/user-1000.slice/user@1000.service/app.slice/xdg-desktop-portal-gtk.service
             └─8635 /usr/lib/xdg-desktop-portal-gtk

But the problem remains.

I’ve gotta guess this is something cinnamon specific.
I’m not an expert on either Flatpak or Cinnamon.
So I suppose we wait.

Extra note: heres the Arch wiki on portals:
https://wiki.archlinux.org/title/XDG_Desktop_Portal

Thank you, but I’ve already read this page.

Wait a tic.

This makes it seem like xapp is being used despite our configuration file.

Do you have a setting somewhere? Like a variable in /etc/environment ?
With the configuration file in place gtk should be used by default …

Maybe this could help:

systemctl --user daemon-reload

Or otherwise I might suggest removing xdg-desktop-portal-xapp as another test if it cannot be disabled.

printenv
SHELL=/bin/bash
SESSION_MANAGER=local/msi-x370:@/tmp/.ICE-unix/2869,unix/msi-x370:/tmp/.ICE-unix/2869
COLORTERM=truecolor
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
LC_ADDRESS=fr_FR.UTF-8
LC_NAME=fr_FR.UTF-8
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
CINNAMON_VERSION=5.8.4
DESKTOP_SESSION=cinnamon
LC_MONETARY=fr_FR.UTF-8
GTK_MODULES=canberra-gtk-module
XDG_SEAT=seat0
PWD=/home/manjar
LOGNAME=manjar
XDG_SESSION_DESKTOP=cinnamon
XDG_SESSION_TYPE=x11
RADV_PERFTEST=aco
XAUTHORITY=/home/manjar/.Xauthority
XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/manjar
MOTD_SHOWN=pam
HOME=/home/manjar
LC_PAPER=fr_FR.UTF-8
LANG=fr_FR.UTF-8
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.pdf=00;32:*.ps=00;32:*.txt=00;32:*.patch=00;32:*.diff=00;32:*.log=00;32:*.tex=00;32:*.doc=00;32:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:
XDG_CURRENT_DESKTOP=X-Cinnamon
VTE_VERSION=7400
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
GNOME_TERMINAL_SCREEN=/org/gnome/Terminal/screen/5e150aed_5e20_4ccf_809e_9d34bb383d6a
YAOURT_COLORS=nb=1:pkg=1:ver=1;32:lver=1;45:installed=1;42:grp=1;34:od=1;41;5:votes=1;44:dsc=0:other=1;35
XDG_SESSION_CLASS=user
TERM=xterm-256color
LC_IDENTIFICATION=fr_FR.UTF-8
USER=manjar
GNOME_TERMINAL_SERVICE=:1.86
DISPLAY=:0
SHLVL=1
LC_TELEPHONE=fr_FR.UTF-8
LC_MEASUREMENT=fr_FR.UTF-8
XDG_VTNR=7
XDG_SESSION_ID=2
XDG_RUNTIME_DIR=/run/user/1000
DEBUGINFOD_URLS=https://debuginfod.archlinux.org 
LC_TIME=fr_FR.UTF-8
GTK3_MODULES=xapp-gtk3-module
XDG_DATA_DIRS=/home/manjar/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share
PATH=/home/manjar/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/var/lib/flatpak/exports/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
GDMSESSION=cinnamon
SAL_USE_VCLPLUGIN=gtk
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
MAIL=/var/spool/mail/manjar
LC_NUMERIC=fr_FR.UTF-8
_=/usr/bin/printenv

No message aftter the "systemctl --user daemon-reload" and Joplin can't import my file.