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: 8)
Reply
#5
Thanks for the help!
Reply


Forum Jump: