How to run flatpak gimp from other app

Questions about applications and software
Forum rules
Before you post please read how to get help
Post Reply
alangauld
Level 1
Level 1
Posts: 5
Joined: Sun May 28, 2017 11:01 am

How to run flatpak gimp from other app

Post by alangauld » Tue Jun 19, 2018 10:01 am

Linux Mint 18.3
Gimp 2.10 Flatpak.

I have installed gimp 2.10 using Flatpak and it works fine as a stand-alone program.
However my Raw developer (Corel Aftershot) wants a filename to run as the external
editor and that doesn't work with flatpak apps. Any ideas how to get round it?

My only thought was to write a batch file that Aftershot can run, which in turn
runs the gimp Flatpak command. But is there a more direct route?

Alan G.

User avatar
BenTrabetere
Level 5
Level 5
Posts: 769
Joined: Sat Jul 19, 2014 12:04 am
Location: Hattiesburg, MS USA

Re: How to run flatpak gimp from other app

Post by BenTrabetere » Tue Jun 19, 2018 12:45 pm

alangauld wrote:
Tue Jun 19, 2018 10:01 am
However my Raw developer (Corel Aftershot) wants a filename to run as the external editor and that doesn't work with flatpak apps.
I am not sure you can. I tried setting the External Editor in RawTherapee to the GIMP flatpak and it threw up an error stating "Please set the correct path in Preferences." I do not use AfterShot, but I suspect you are getting similar results, and I also suspect that it is because flatpak does not like input from outside its sandbox.
Any ideas how to get round it?
How committed are you to AfterShot? If you are willing to change (or try) darktable, RawTherapee, or nuFRaw (a fork of UFRaw), there is an AppImage for GIMP 2.10 that was built with the import plugins for these RAW developers. Download it from
https://github.com/aferrero2707/gimp-ap ... continuous

The current version is gimp-git-2.10.3-20180614.glibc2.15-x86_64.AppImage

You will need to install one of these RAW developers, which involves adding a PPA. The one for darktable is managed by the developers, and the one for RT and nuFRaw is managed by a third party. I have used both PPAs for a couple of years, and I have not had any problems with them.
http://www.darktable.org/
http://www.rawtherapee.com/
https://sourceforge.net/projects/nufraw/

There also is an RawTherapee AppImage, but I could not get it to work properly with the GIMP AppImage. GIMP would launch, but the image would not load and the application was not responsive.

alangauld
Level 1
Level 1
Posts: 5
Joined: Sun May 28, 2017 11:01 am

Re: How to run flatpak gimp from other app

Post by alangauld » Wed Jun 20, 2018 1:25 pm

I created a shell script using the command line I found in the menu editor. I replaced the %%U stuff with $1 and set Aftershot to use the script.
It works perfectly opening a tiff file in Gimp 2.10.

I have tried UFRaw, Darktable and RawTherapy and Darktable looks promising (and I still play with it occasionally - and its the only real option for tethering a camera on Linux) but it's a huge learning curve and I can't get close to Lightroom or Aftershot in final quality. I suspect if I persevered I could but I'm used to Aftershot and Lightroom.

Thanks for the suggestions.

User avatar
BenTrabetere
Level 5
Level 5
Posts: 769
Joined: Sat Jul 19, 2014 12:04 am
Location: Hattiesburg, MS USA

Re: How to run flatpak gimp from other app

Post by BenTrabetere » Thu Jun 21, 2018 12:33 am

alangauld wrote:
Wed Jun 20, 2018 1:25 pm
Darktable looks promising ... but it's a huge learning curve
Have you watched Robert Hutton's screencasts? He takes a workflow approach with his tutorials. He shows the steps he takes to process an image.

https://www.youtube.com/playlist?list=P ... o1B468zEA0

O-rion
Level 1
Level 1
Posts: 30
Joined: Sun Feb 15, 2015 3:05 pm

Re: How to run flatpak gimp from other app

Post by O-rion » Wed Jul 11, 2018 4:25 am

alangauld wrote:
Wed Jun 20, 2018 1:25 pm
I created a shell script using the command line I found in the menu editor. I replaced the %%U stuff with $1 and set Aftershot to use the script.
It works perfectly opening a tiff file in Gimp 2.10.
I have the same problem with xnviewmp
The above idea doesn#t work for me :-(.
Could you please post what your script looks like?


My menu-entry for flatpak-gimp looks like so:
/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=gimp-2.10 --file-forwarding org.gimp.GIMP @@u %U @@. I'v tried all kinds of things to replace the @@....@@ stuff ... nothing works. I guess I'm doing something wrong.

Regards
O-rion

Post Reply

Return to “Software & Applications”