Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem getting a plugin to work on Linux mint
#1
On windows 10 I’m running GIMP 2.10.20
I have a ShellOut.py in the plug-in directory (C:\Users\....\GIMP\2.10\plug-ins) and everything works perfectly. I use the ShellOut to launch the Nik collection

I recently installed GIMP 2.10.30 on Linux Mint ver 21, and I cannot get the ShellOut.py to work or even be recognized by GIMP. By not being recognized I mean it doesn’t show up under the filters option in GIMP. I placed the ShellOut.py into /home/…/.config/GIMP/2.10/plug-ins 

Does anyone have any advice? I’m stuck. One thing I found online suggested it maybe do to Linux mint being on version 3 of Python, but I’m not sure what to change for that.
Reply
#2
The NIK collection is very much a Windows installation, dozens of files, hundreds of registry entries. Do not expect it to work in linux even in WINE.

For shellout.py (or other python plugins) to work it does of course require a Gimp python2 installation. Not there in Mint 21. It can be 'added' with an appimage.

see:
https://www.gimp-forum.net/Thread-Python...3#pid29963#

https://github.com/TasMania17/Gimp-Appim...-for-Linux

https://i.imgur.com/fWY3ezt.mp4
Reply
#3
(11-06-2022, 10:03 PM)rich2005 Wrote: The NIK collection is very much a Windows installation, dozens of files, hundreds of registry entries. Do not expect it to work in linux even in WINE.

For shellout.py (or other python plugins) to work it does of course require a Gimp python2 installation. Not there in Mint 21. It can be 'added' with an appimage.

see:
https://www.gimp-forum.net/Thread-Python...3#pid29963#

https://github.com/TasMania17/Gimp-Appim...-for-Linux

https://i.imgur.com/fWY3ezt.mp4

Thanks for the information

I was able to get NIK to run standalong using a nik4nix.exe on Linux. At the moment I can't find the location I downloaded it from, sorry. I used wine to install NIK. When I say I got it running, I only tried define 2. That's the main NIK program I'm after. I like the results from Define 2, but maybe it's time to find something new. 

From https://github.com/ericoporto/NikInGimp I got the impression it could be made to work with GIMP but it's starting to sound pretty difficult.
Reply
#4
OK, I give in, I installed the nik collection in Wine (only 466 MB) Wink

Using kubuntu 20.04 here so I can get Gimp 2.10.32 from a PPA and python support from some old packages. For Mint 21 use the appimage I indicated in the previous post. The Gimp flatpak comes with python2 but being sandboxed I do not know if it picks up anything from wine.

This video of the procedure I followed: https://youtu.be/Riarm7rFJIQ





1. Check that Dfine2.exe works in the Wine folders
2. For simplicity make a new 'nik' folder in home
3. Make sym link from Dfine2.exe to the nik folder
Code:
ln -s "/home/user-name/.wine/drive_c/Program Files/Google/Nik Collection/Dfine 2/Dfine 2 (64-Bit)/Dfine2.exe" /home/user-name/nik
4. Edit the NIKDfine2.py plugin (attached). This came originally from the Partha Windows Gimp. Line 85-87 change user-name to whatever is your home.
Code:
  # Build command line call
#  command = "\"C:\\Program Files\\Google\\Nik Collection\\Dfine 2\\Dfine 2 (64-Bit)\\Dfine2.exe\"" + " \"" + tempfilename + "\""
  command = "wine /home/user-name/nik/Dfine2.exe" + " \"" + tempfilename + "\""
5. Try out in Gimp

You can try and bypass stage 3 if you want. I had problems with the 64 bit version. Stupid MS and their spaces in file names.


Attached Files
.zip   NIKDfine2.zip (Size: 2.03 KB / Downloads: 63)
Reply
#5
Thanks for the help!
Reply
#6
(11-06-2022, 11:12 PM)Bob_H Wrote:
(11-06-2022, 10:03 PM)rich2005 Wrote: The NIK collection is very much a Windows installation, dozens of files, hundreds of registry entries. Do not expect it to work in linux even in WINE.

For shellout.py (or other python plugins) to work it does of course require a Gimp python2 installation. Not there in Mint 21. It can be 'added' with an appimage.

see:
https://www.gimp-forum.net/Thread-Python...3#pid29963#

https://github.com/TasMania17/Gimp-Appim...-for-Linux

https://i.imgur.com/fWY3ezt.mp4

Thanks for the information

I was able to get NIK to run standalong using a nik4nix.exe on Linux. At the moment I can't find the location I downloaded it from, sorry. I used wine to install NIK. When I say I got it running, I only tried define 2. That's the main NIK program I'm after. I like the results from Define 2, but maybe it's time to find something new. 

From https://github.com/ericoporto/NikInGimp I got the impression it could be made to work with GIMP but it's starting to sound pretty difficult.

Unfortunately your apps don't work on my Ubuntu 23.10. In any case I would like to have Gimp flatpak and manage the nik collection from here. I have tried other ppa solutions but they are equally unsuccessful.
Reply
#7
(01-27-2024, 09:17 AM)Kamolis68+ Wrote: ....snip...
Unfortunately your apps don't work on my Ubuntu 23.10. In any case I would like to have Gimp flatpak and manage the nik collection from here. I have tried other ppa solutions but they are equally unsuccessful.

Such is life, I always have a battle getting my old favourite utilities working after upgrading with (k)ubuntu. Ubuntu 22.04 is just about usable for me.

You might like the ease of using a flatpak Gimp, but that was explained in your other post. It is 'sandboxed' The maintainers do provide a few 'bespoke' plugins - gimp_gmic_qt / resynthesizer ... but unlikely that the shellout.py plug-in will connect to NIK using WINE.

At least you have it working 'stand-alone'
Reply
#8
(01-27-2024, 09:37 AM)rich2005 Wrote:
(01-27-2024, 09:17 AM)Kamolis68+ Wrote: ....snip...
Unfortunately your apps don't work on my Ubuntu 23.10. In any case I would like to have Gimp flatpak and manage the nik collection from here. I have tried other ppa solutions but they are equally unsuccessful.

Such is life, I always have a battle getting my old favourite utilities working after upgrading with (k)ubuntu. Ubuntu 22.04 is just about usable for me.

You might like the ease of using a flatpak Gimp, but that was explained in your other post. It is 'sandboxed' The maintainers do provide a few 'bespoke' plugins - gimp_gmic_qt / resynthesizer ... but unlikely that the shellout.py plug-in will connect to NIK using  WINE.

At least you have it working 'stand-alone'

It's partly true. however on Github I found these plugins:  https://github.com/draekko-rand/nik_for_gimp   working and recognized by Gimp flatpak. the difficulty is calling the program and making it work in Gimp. I contacted the maker but he hasn't responded yet and maybe he won't...
Reply


Forum Jump: