From: Danny Milosavljevic <dannym@scratchpost.org>
To: Reza Alizadeh Majd <r.majd@pantherx.org>
Cc: 38926@debbugs.gnu.org
Subject: bug#38926: pcmanfm-qt unable to open files by double click
Date: Sun, 5 Jan 2020 23:57:46 +0100 [thread overview]
Message-ID: <20200105235739.6de82e76@scratchpost.org> (raw)
In-Reply-To: <20200105233729.10add7f5@scratchpost.org>
[-- Attachment #1: Type: text/plain, Size: 2239 bytes --]
In this case I've tried it myself. I've invoked
gdb $(which pcmanfm-qt)
then
r
then I double-clicked an entry and waited until the error dialog window
appeared.
then I DIDN'T CLICK IT AWAY.
then I pressed Ctrl-C in gdb
then
bt
and so I found:
[...]
#6 0x00007ffff7ea1642 in Fm::FileLauncher::showError(_GAppLaunchContext*, Fm::GErrorPtr const&, Fm::FilePath const&, std::shared_ptr<Fm::FileInfo const> const&) () from /gnu/store/91d7kqg44cfzcav1l2wfn84hr310xvyx-libfm-qt-0.14.1/lib/libfm-qt.so.6
#7 0x00007ffff7e88939 in Fm::BasicFileLauncher::launchWithApp(_GAppInfo*, std::vector<Fm::FilePath, std::allocator<Fm::FilePath> > const&, _GAppLaunchContext*) () from /gnu/store/91d7kqg44cfzcav1l2wfn84hr310xvyx-libfm-qt-0.14.1/lib/libfm-qt.so.6
#8 0x00007ffff7e8ae4d in Fm::BasicFileLauncher::launchFiles(Fm::FileInfoList const&, _GAppLaunchContext*) () from /gnu/store/91d7kqg44cfzcav1l2wfn84hr310xvyx-libfm-qt-0.14.1/lib/libfm-qt.so.6
#9 0x00007ffff7ea11b7 in Fm::FileLauncher::launchFiles(QWidget*, Fm::FileInfoList const&) () from /gnu/store/91d7kqg44cfzcav1l2wfn84hr310xvyx-libfm-qt-0.14.1/lib/libfm-qt.so.6
#10 0x00007ffff7ead5a2 in Fm::FolderView::onFileClicked(int, std::shared_ptr<Fm::FileInfo const> const&) () from /gnu/store/91d7kqg44cfzcav1l2wfn84hr310xvyx-libfm-qt-0.14.1/lib/libfm-qt.so.6
#11 0x000000000044aa55 in PCManFM::View::onFileClicked(int, std::shared_ptr<Fm::FileInfo const> const&) ()
[...]
Therefore, the interesting part would be either Fm::BasicFileLauncher::launchWithApp or Fm::BasicFileLauncher::launchFiles .
The former (inside package "libfm-qt") uses
g_app_info_get_default_for_type
to get the app to use. I suspect that that returns "gio-launch-desktop" without the full path--which is wrong.
Checking glib source code, there's an environment variable GIO_LAUNCH_DESKTOP
that you can set (to the full path of gio-launch-desktop) for a first workaround.
Or, for a complete fix, patch glib-2.60.6/gio/gdesktopappinfo.c
tmp = "gio-launch-desktop"
to say
tmp = "/gnu/store/xyz-glib-.../bin/gio-launch-desktop";
instead. The latter has the advantage that it magically fixes ALL the applications.
I hope that helps.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next prev parent reply other threads:[~2020-01-05 22:58 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-04 20:24 bug#38926: pcmanfm-qt unable to open files by double click Reza Alizadeh Majd
2020-01-05 9:56 ` Danny Milosavljevic
2020-01-05 13:52 ` Reza Alizadeh Majd
2020-01-05 22:37 ` Danny Milosavljevic
2020-01-05 22:57 ` Danny Milosavljevic [this message]
2020-01-06 10:06 ` Danny Milosavljevic
2020-01-06 16:38 ` Danny Milosavljevic
2020-01-06 16:45 ` Reza Alizadeh Majd
2020-01-06 19:44 ` Danny Milosavljevic
2020-01-07 6:23 ` Reza Alizadeh Majd
2020-01-07 8:03 ` Reza Alizadeh Majd
2020-01-07 11:19 ` Hartmut Goebel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200105235739.6de82e76@scratchpost.org \
--to=dannym@scratchpost.org \
--cc=38926@debbugs.gnu.org \
--cc=r.majd@pantherx.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.