#986763 libfm-qt8: Terminal applications are not openend with the default terminal

Package:
libfm-qt8
Source:
libfm-qt
Description:
file management support for pcmanfm-qt
Submitter:
Sébastien Dailly
Date:
2021-04-11 17:48:04 UTC
Severity:
normal
#986763#5
Date:
2021-04-11 17:45:33 UTC
From:
To:
Dear Maintainer,

I'm using the debian vershion of libfm-qt (libfm-qt8_0.16.0-3) and I have the
same issue than [https://github.com/lxqt/libfm-qt/issues/309] when I'm opening
a file with a terminal application inside pcmanfm-qt, it uses the glib backend
instead of the default terminal.

here is an extract from the `strace pcmanfm-qt` when I try to open a text/plain
document :

```
access("/usr/bin/gnome-terminal", X_OK) = -1 ENOENT (Aucun fichier ou dossier
de ce type)
access("/bin/gnome-terminal", X_OK)     = -1 ENOENT (Aucun fichier ou dossier
de ce type)
access("/usr/games/gnome-terminal", X_OK) = -1 ENOENT (Aucun fichier ou dossier
de ce type)
access("/usr/bin/mate-terminal", X_OK)  = -1 ENOENT (Aucun fichier ou dossier
de ce type)
access("/bin/mate-terminal", X_OK)      = -1 ENOENT (Aucun fichier ou dossier
de ce type)
access("/usr/games/mate-terminal", X_OK) = -1 ENOENT (Aucun fichier ou dossier
de ce type)
access("/usr/bin/xfce4-terminal", X_OK) = -1 ENOENT (Aucun fichier ou dossier
de ce type)
access("/bin/xfce4-terminal", X_OK)     = -1 ENOENT (Aucun fichier ou dossier
de ce type)
access("/usr/games/xfce4-terminal", X_OK) = -1 ENOENT (Aucun fichier ou dossier
de ce type)
access("/usr/bin/nxterm", X_OK)         = -1 ENOENT (Aucun fichier ou dossier
de ce type)
access("/bin/nxterm", X_OK)             = -1 ENOENT (Aucun fichier ou dossier
de ce type)
access("/usr/games/nxterm", X_OK)       = -1 ENOENT (Aucun fichier ou dossier
de ce type)
access("/usr/bin/color-xterm", X_OK)    = -1 ENOENT (Aucun fichier ou dossier
de ce type)
access("/bin/color-xterm", X_OK)        = -1 ENOENT (Aucun fichier ou dossier
de ce type)
access("/usr/games/color-xterm", X_OK)  = -1 ENOENT (Aucun fichier ou dossier
de ce type)
access("/usr/local/bin/rxvt", X_OK)     = -1 ENOENT (Aucun fichier ou dossier
de ce type)
access("/usr/bin/rxvt", X_OK)           = 0
```

The terminal list is taken from the glib library, so it seems that the issue
above is not completely corrected. rxvt is used here because it is the first
application installed in the list, but if install xfce4-terminal, this
applicaton is used instead.

The xdg-association is a standard vim configuration (untouched from the default
debian configuration)

$ xdg-mime query default text/plain
vim.desktop