From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: bug#38926: pcmanfm-qt unable to open files by double click Date: Sun, 5 Jan 2020 23:57:46 +0100 Message-ID: <20200105235739.6de82e76@scratchpost.org> References: <20200105105655.5dde2d6c@scratchpost.org> <2e3e1ced-2c3c-4084-817d-ac19aca5562d@www.fastmail.com> <20200105233729.10add7f5@scratchpost.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/9bp/HSvTsnN2NI3ltjiypTF"; protocol="application/pgp-signature"; micalg=pgp-sha256 Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:50868) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ioEqR-0004BA-4m for bug-guix@gnu.org; Sun, 05 Jan 2020 17:58:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ioEqQ-00046n-3F for bug-guix@gnu.org; Sun, 05 Jan 2020 17:58:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:38807) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ioEqQ-00046e-0B for bug-guix@gnu.org; Sun, 05 Jan 2020 17:58:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ioEqP-0004ge-V7 for bug-guix@gnu.org; Sun, 05 Jan 2020 17:58:01 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <20200105233729.10add7f5@scratchpost.org> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Reza Alizadeh Majd Cc: 38926@debbugs.gnu.org --Sig_/9bp/HSvTsnN2NI3ltjiypTF Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable In this case I've tried it myself. I've invoked=20 gdb $(which pcmanfm-qt) then=20 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 const&) () from /gnu/store/91d7kqg44cfzcav1l2wfn84hr310xvyx-libfm-qt-0.= 14.1/lib/libfm-qt.so.6 #7 0x00007ffff7e88939 in Fm::BasicFileLauncher::launchWithApp(_GAppInfo*, = std::vector > const&, _GAppLaunc= hContext*) () from /gnu/store/91d7kqg44cfzcav1l2wfn84hr310xvyx-libfm-qt-0.1= 4.1/lib/libfm-qt.so.6 #8 0x00007ffff7e8ae4d in Fm::BasicFileLauncher::launchFiles(Fm::FileInfoLi= st const&, _GAppLaunchContext*) () from /gnu/store/91d7kqg44cfzcav1l2wfn84h= r310xvyx-libfm-qt-0.14.1/lib/libfm-qt.so.6 #9 0x00007ffff7ea11b7 in Fm::FileLauncher::launchFiles(QWidget*, Fm::FileI= nfoList const&) () from /gnu/store/91d7kqg44cfzcav1l2wfn84hr310xvyx-libfm-q= t-0.14.1/lib/libfm-qt.so.6 #10 0x00007ffff7ead5a2 in Fm::FolderView::onFileClicked(int, std::shared_pt= r const&) () from /gnu/store/91d7kqg44cfzcav1l2wfn84hr3= 10xvyx-libfm-qt-0.14.1/lib/libfm-qt.so.6 #11 0x000000000044aa55 in PCManFM::View::onFileClicked(int, std::shared_ptr= const&) () [...] Therefore, the interesting part would be either Fm::BasicFileLauncher::laun= chWithApp 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" wi= thout the full path--which is wrong.=20 Checking glib source code, there's an environment variable GIO_LAUNCH_DESKT= OP that you can set (to the full path of gio-launch-desktop) for a first worka= round. Or, for a complete fix, patch glib-2.60.6/gio/gdesktopappinfo.c=20 tmp =3D "gio-launch-desktop" to say tmp =3D "/gnu/store/xyz-glib-.../bin/gio-launch-desktop"; instead. The latter has the advantage that it magically fixes ALL the appl= ications. I hope that helps. --Sig_/9bp/HSvTsnN2NI3ltjiypTF Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAl4SaeoACgkQ5xo1VCww uqVmlQgAnGwPmK1e+jLcVAriugdVPxNvPcgSbebAqKzA3NVyrwl/NKfyezIDZ/K6 JXNqbUyNxCmq1u1Mky/exvJI856o9Ku3Q4ZqrM263xXEJhhPQnnLHUiwz2rEvc/Q K/v0spbE4MrmAKYO8gwVOtY9XyhWF97RDxFNYlzCDkr/B+9cH9RO91Bjolu+je95 x0kCgD3X7whwxk9EfgLceOFFn7C3gOMSoPYtegRnfag/strKeCBzR1rC5W0nfE+t 7ExRvq19cMxshcziIHNYGfUz0NhPBx0FAwoD6QAnSxl4//UMzXSX8EO52ZZIDlHD 6u8AL6HzRUbkwTPQtry03e0K3FXqzg== =rBce -----END PGP SIGNATURE----- --Sig_/9bp/HSvTsnN2NI3ltjiypTF--