bug#38926: pcmanfm-qt unable to open files by double click

2020-01-07 Thread Hartmut Goebel
Am 05.01.20 um 23:37 schrieb Danny Milosavljevic: Re. > No idea how to do that with Qt programs. Hartmut? For Qt/KDE I did not actually address this topic yet. I tend to handle this case-by-case: If the coupling is "tight" and if this is a

bug#38926: pcmanfm-qt unable to open files by double click

2020-01-07 Thread Reza Alizadeh Majd
related patch submitted: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=39004 -- Regards Reza Alizadeh Majd PantherX Team

bug#38926: pcmanfm-qt unable to open files by double click

2020-01-06 Thread Reza Alizadeh Majd
Hi Danny, > I don't think that will work. According to the glib source code[1], the > variable is read at runtime of the final program. oh, your right !!! I incorrectly thought that GIO_LAUNCH_DESKTOP is a preprocessor macro. > What you could do is use your wrap-program in pcmanfm-qt, but

bug#38926: pcmanfm-qt unable to open files by double click

2020-01-06 Thread Danny Milosavljevic
Hi Reza, On Mon, 06 Jan 2020 20:15:43 +0330 "Reza Alizadeh Majd" wrote: > +(add-before 'build 'patch-gio-launch-desktop > + (lambda* (#:key outputs #:allow-other-keys) > + (let ((bin-path (assoc-ref outputs "bin") "/bin")) > + (setenv

bug#38926: pcmanfm-qt unable to open files by double click

2020-01-06 Thread Reza Alizadeh Majd
Hi, On Mon, Jan 6, 2020, at 8:08 PM, Danny Milosavljevic wrote: > > 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

bug#38926: pcmanfm-qt unable to open files by double click

2020-01-06 Thread Danny Milosavljevic
> 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. When I try that, I get a

bug#38926: pcmanfm-qt unable to open files by double click

2020-01-06 Thread Danny Milosavljevic
See also https://gitlab.gnome.org/GNOME/glib/issues/1633 "should not install gio-launch-desktop into PATH" pgpV7xgIARK7C.pgp Description: OpenPGP digital signature

bug#38926: pcmanfm-qt unable to open files by double click

2020-01-05 Thread Danny Milosavljevic
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 0x77ea1642 in

bug#38926: pcmanfm-qt unable to open files by double click

2020-01-05 Thread Danny Milosavljevic
Hi Reza, I wouldn't change PATH in a *file manager*, of all programs. That will make the user hate his life should it ever pick up the wrong indirect child executable because of that PATH change--which is opaque the user. (Otherwise, often, your solution would have been the correct

bug#38926: pcmanfm-qt unable to open files by double click

2020-01-05 Thread Reza Alizadeh Majd
Hi, > Unfortunately, that way is not acceptable. > > Long story short, please make it a regular input. The reasoning is below: > > Guix has better modularity than most of the other distributions that exist. OK, I got your point, so I think following patch could be acceptable now:

bug#38926: pcmanfm-qt unable to open files by double click

2020-01-05 Thread Danny Milosavljevic
Hi, thanks for the patch. Unfortunately, that way is not acceptable. Long story short, please make it a regular input. The reasoning is below: Guix has better modularity than most of the other distributions that exist. One of the main uses of modularity is isolation. If one module uses

bug#38926: pcmanfm-qt unable to open files by double click

2020-01-04 Thread Reza Alizadeh Majd
Hi, there is an issue with `pcmanfm-qt`. when we try to open a known file using double click, we receive following error: --8<---cut here---start->8--- Failed to execute child process “gio-launch-desktop” (No such file or directory) --8<---cut