View Issue Details

IDProjectCategoryView StatusLast Update
0002549Double CommanderGraphical user interfacepublic2020-11-28 18:09
Reporterzeroconf Assigned ToAlexx2000  
PriorityhighSeverityblockReproducibilityalways
Status resolvedResolutionno change required 
ProjectionnoneETAnone 
PlatformLinuxOSLinux MintOS Version20
Product Version0.9.9Product Build2020/06/27 
Summary0002549: unable to run containerized (Flatpak) text editor
DescriptionWould like to use Geany as external editor. Installed it as Flatpak to have more up-to-date version.

Tried to use the following path:
/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=geany --file-forwarding org.geany.Geany @@ %F @@

Also tried to use path to *.desktop file:
/var/lib/flatpak/exports/share/applications/org.geany.Geany.desktop

No one worked - editor just won't open
Steps To Reproduce1. open DoubleCMD configuration
2. navigate Tools -> Editor
3. check "Use external program"
4. paste "Path to program to execute":
/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=geany --file-forwarding org.geany.Geany @@ %F @@
OR
/var/lib/flatpak/exports/share/applications/org.geany.Geany.desktop
5. Apply
6. try to open any text file with F4
7. nothing opens

Tried workarounds:
* wrote a script

#!/bin/sh
#sh -c '/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=geany --file-forwarding org.geany.Geany @@ %F @@'
flatpak run org.geany.Geany

Tried both lines by commenting in/out one by time, neither works. First one is original executing path, another is traditional Flatpak app running manually. Tried also that manual flatpak command directly from DoubleCMD settings, didn't work either. Also tried directly with and without sh -c - didn't work either.

I guess same applies to Snap apps ( https://en.wikipedia.org/wiki/Snap_(package_manager) ), also in case of AppImage apps (https://en.wikipedia.org/wiki/AppImage), possible some other containerized app (http://techgenix.com/desktop-applications-in-containers/).
Additional InformationDouble Commander
Version: 0.9.9 beta
Revision: 9478
Build date: 2020/06/27
Lazarus: 2.0.8.0
FPC: 3.0.4
Platform: x86_64-Linux-gtk2
OS version: Linux Mint 20 Ulyana
Widgetset library: GTK 2.24.32

Installed from OpenSuse DEB repository https://software.opensuse.org/download.html?project=home%3AAlexx2000&package=doublecmd-gtk#manualUbuntu
TagsNo tags attached.
Fixed in Revision
Operating systemLinux
WidgetsetGTK2
Architecture64-bit

Activities

Skif_off

2020-11-03 18:02

reporter   ~0003530

This is not DC problem.

> 4. paste "Path to program to execute":

In this case "Path to program to execute" should be /usr/bin/flatpak, and %F uses in desktop-files, not in DC. So try:
path-to: /usr/bin/flatpak
params: run --branch=stable --arch=x86_64 --command=geany --file-forwarding org.geany.Geany @@ %p @@

> Tried workarounds:
> * wrote a script

Also see above about %F and in this case you should use something like
-----------------------------------------
#!/bin/sh
/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=geany --file-forwarding org.geany.Geany @@ "$@" @@ &
-----------------------------------------
(or without " &" in the end).

Skif_off

2020-11-03 18:57

reporter   ~0003531

> I guess same applies to Snap apps

Yes, same applies to Snap apps, just open desktop-file and see "Exec=".

> also in case of AppImage apps

Normal AppImage files supports command line parameters (i.e. they can pass them to the application, that will be launched), so make executable and try to use
path-to: /path/to/Geany.AppImage
params: %p

Skif_off

2020-11-28 16:13

reporter   ~0003574

Maybe close this issue with "no change required"?

Issue History

Date Modified Username Field Change
2020-11-03 15:45 zeroconf New Issue
2020-11-03 18:02 Skif_off Note Added: 0003530
2020-11-03 18:57 Skif_off Note Added: 0003531
2020-11-03 20:33 Alexx2000 Status new => feedback
2020-11-28 16:13 Skif_off Note Added: 0003574
2020-11-28 18:09 Alexx2000 Status feedback => resolved
2020-11-28 18:09 Alexx2000 Resolution open => no change required
2020-11-28 18:09 Alexx2000 Assigned To => Alexx2000