Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Scripts don't work anymore with Gimp 2.10.20
#4
(09-05-2020, 03:43 PM)Ofnuts Wrote: A question is how you define ~/gimp. The ~ is a shell thing and only a shell (bash/ksh/zsh) will replace it by /home/your_id. For Gimp is  just a directory called ~ (n there working directory). But then you would have to set that by editing the gimprc file directly.

Not a Scheme/script-fu expert by IMHO for you second experiment, you are not defining a test function but a script-fu-test one.

Since you mention snap, I assume that you are running the snap packaging, so what directories are listed in Edit>Preferences>Folders>Scripts?

Thanks for your message, Ofnuts!

I don't use ~ in my gimp Preferences; I use /home/[USERNAME]/gimp.

I did some changes on my test.scm and tried to run gimp -i -b "(script-fu-test)" -b '(gimp-quit 0)', but threw the same error (see screenshot)

(09-05-2020, 03:47 PM)rich2005 Wrote: No solution, just comments

'buntu 20.04 default Gimp is 2.10.18 not 2.10.20  and looking at your script-fu folders list you installed the snap version of Gimp.

Generally that is ok, it does work (for most things) added scripts should go in ~/snap/gimp/292/.config/GIMP/2.10/scripts That works here for me. A script there runs on an open image in Gimp.
The installation folder might show as /usr/share/gimp/2.0/scripts but it is actually /snap/gimp/292/usr/share/gimp/2.0/scripts



You 'upgraded' to 'buntu 20.04 Does that mean over the top of your existing (maybe 'buntu 18.04) installation? I wonder are there bits of the old remaining? The old Gimp profile for example.  Looks that way from your 'scripts' folder list.
In a terminal what does whereis gimp show?
Also in a terminal a plain gimp command works, a bit strange considering it is /snap/bin/gimp Gimp starts but I get the same sort of error message as you do.  These 'snap' installations are sandboxed and self-contained. Might explain why the gimp - command - batch fails.

Hello rich2005 and thanks for your comments!

I just tried to move my script to ~/snap/gimp/292/.config/GIMP/2.10/scripts with full 777 permissions but when I refresh scripts via GIMP then I get the same error pop-up, as you can see in the screenshot. 

Moreover, I totally formatted my older 18.04 Ubuntu, and then I did a clean installation of Ubuntu 20.04. Then, I installed Gimp 2.10.20 through Ubuntu Software application. 

I have been manually creating gimp script folders so maybe this is why it seems it's from older remains.

whereis gimp returns 
Code:
gimp: /usr/lib/gimp /etc/gimp /usr/share/gimp /snap/bin/gimp

If Ubuntu's 20.04 default GIMP is 2.10.18 then maybe it would be better to install this one instead of 2.10.20? And maybe not via snap, what do you think? If this is better, do you know what is the best way to fresh install GIMP 20.10.18 on my Ubuntu 20.04?

Thank you in advance!

(09-05-2020, 03:43 PM)Ofnuts Wrote:  so what directories are listed in Edit>Preferences>Folders>Scripts?

If I reset the Script-Fu folders, then I get these ones


Attached Files Thumbnail(s)
   
Image(s)
       
Reply


Messages In This Thread
RE: Scripts don't work anymore with Gimp 2.10.20 - by gounis - 09-05-2020, 05:30 PM

Forum Jump: