It is currently Tue Oct 24, 2017 6:27 am


Latest GIMP Scripts & Plug-ins

All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 293 posts ]  Go to page Previous  1 ... 25, 26, 27, 28, 29, 30  Next
Author Message
 Post subject: Re: ShellOut.py (was XNViewShell) - Call external programs
PostPosted: Fri Nov 15, 2013 7:19 am  (#271) 
Offline
GimpChat Member

Joined: Nov 14, 2013
Posts: 92
yes I tried all that but it still doesn't work - dont know what else to try
xnview works fine under wine.
I get this error
Traceback (most recent call last):
  File "/usr/lib/gimp/2.0/python/gimpfu.py", line 699, in response
    dialog.res = run_script(params)
  File "/usr/lib/gimp/2.0/python/gimpfu.py", line 361, in run_script
    return apply(function, params)
  File "/home/dk/.gimp-2.8/plug-ins/XNViewShell.py", line 83, in plugin_main
    child = subprocess.Popen(args, shell=False)
  File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1259, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory


and this is the path I have set
command = "\"C:\\Program Files\\portables\\XnView1.99.6\\xnview.exe\" \"" + tempfilename + "\""

_________________
using Gimp 2.9 with Linux on an ancient laptop


Top
 Post subject: Re: ShellOut.py (was XNViewShell) - Call external programs
PostPosted: Fri Nov 15, 2013 8:59 am  (#272) 
Offline
GimpChat Member

Joined: Mar 04, 2011
Posts: 1178
nope: that is the windoze part of it, xnview still has to be called from WINE (have a look at the code again in post#262 and the comment made about shellout version)

something like this near the beginning
------
# Where what gets executed is command fileame so include and flags needed in the command.
programlist = [
["XNView", "\"C:\\Program Files\\portables\\XnView1.99.6\\xnview.exe\"", "png"],
------
at line 110 - point it to your home & windows/temp
tempfilename = "/home/your_home_directory/.wine/drive_c/windows/temp/tempfile.png"

------
and further down the script at line 116
command = "\usr\bin\wine "C:\\Program Files\\portables\\XnView1.99.6\\xnview.exe\" \"" + tempfilename + "\""

-------

_________________
Image


Top
 Post subject: Re: ShellOut.py (was XNViewShell) - Call external programs
PostPosted: Fri Nov 15, 2013 9:11 am  (#273) 
Offline
GimpChat Member

Joined: Nov 14, 2013
Posts: 92
Hmm the last post I made was dumb - I can see that you would have to use wine at the front of the command. I have just tried that much That i have confused myself.
Yes I had already tried everything on post 262 and there was also a post suggesting I should use another script just called xnview but changing that script didn't work either.
Thats' why i find this whole thread confusing it's a mixture of suggestions for windows and linux and it would be better if it was two separate threads.
If there was a separate linux thread I could have seen someone els'es script and just slightly changed it to reflect my paths instead of trying to use a script for windows - changing it doesn't work for me.
I give up thanks for the help

_________________
using Gimp 2.9 with Linux on an ancient laptop


Top
 Post subject: Re: ShellOut.py (was XNViewShell) - Call external programs
PostPosted: Sat Aug 15, 2015 4:00 am  (#274) 
Offline
GimpChat Member
User avatar

Joined: Aug 13, 2015
Posts: 312
Location: Somewhere between lost and found.
I haven’t read this whole topic so I apologize if I am restating something, but xnview is now natively available for Linux. I just installed it tonight on LinuxMint 17.1.

_________________
The answer was 42. The question is long forgotten. The computer that solved it is now destroyed.
The MK-2 has been built. Should this be the next question?
(Solve if you can ... ;) )
Image


Top
 Post subject: Re: ShellOut.py (was XNViewShell) - Call external programs
PostPosted: Sat Aug 15, 2015 4:21 am  (#275) 
Offline
GimpChat Member

Joined: Mar 04, 2011
Posts: 1178
Unfortunately when it was packaged, the package was incorrectly named.

What you get is XnViewMP (xnview multi platform) an excellent graphics file viewer / organiser / converter. Well worth installing.

Attachment:
xnviewmp.jpg
xnviewmp.jpg [ 87.49 KiB | Viewed 1393 times ]


What is not there is support for PS .8bf filters.

Back to the old windoze xnview + WINE

_________________
Image


Top
 Post subject: Re: ShellOut.py (was XNViewShell) - Call external programs
PostPosted: Sat Aug 15, 2015 9:06 am  (#276) 
Offline
GimpChat Member
User avatar

Joined: Aug 13, 2015
Posts: 312
Location: Somewhere between lost and found.
grrrrrrrrrrrrrrr............................

_________________
The answer was 42. The question is long forgotten. The computer that solved it is now destroyed.
The MK-2 has been built. Should this be the next question?
(Solve if you can ... ;) )
Image


Top
 Post subject: Re: ShellOut.py (was XNViewShell) - Call external programs
PostPosted: Sat Oct 17, 2015 11:36 pm  (#277) 
Offline
GimpChat Member
User avatar

Joined: Jun 02, 2013
Posts: 1937
Location: Central Illinois
Way too lazy to read through this, but is there anyway to add the program "Unshake" to shellout?

_________________
Image


Top
 Post subject: Re: ShellOut.py (was XNViewShell) - Call external programs
PostPosted: Sun Oct 18, 2015 8:09 am  (#278) 
Offline
GimpChat Member

Joined: May 16, 2010
Posts: 13983
Location: USA
The Warrior wrote:
Way too lazy to read through this, but is there anyway to add the program "Unshake" to shellout?

Yes. When you open the Unshake folder you will see a file named "Launch.bat" point Shellout to this executable file like such.

  ["Unshake", "\"C:\\Portables\\Unshake\\Launch.bat\"", "png"],


Be sure to point to the correct folder destination path. Mine just happens to be c:\\Portables\\Unshake.
DON'T forget to double slash or Shellout won't find the directory.


Top
 Post subject: Re: ShellOut.py (was XNViewShell) - Call external programs
PostPosted: Sun Oct 18, 2015 8:34 am  (#279) 
Offline
GimpChat Member

Joined: May 16, 2010
Posts: 13983
Location: USA
OR if you have Java installed elsewhere use a new bat file and point shellout to it instead.
For instance i have Java installed in my portables directory.
The shellout file.
  ["Unshake", "\"C:\\Portables\\Unshake\\Unshake.bat\"", "png"],


And the bat file.
@echo off
echo *** Do Not Close this Window ***
echo Temp File: %1
"C:\Portables\Java\jre7\bin\java.exe" -jar c:\Portables\Unshake\Unshake.jar %1

Image


Top
 Post subject: Re: ShellOut.py (was XNViewShell) - Call external programs
PostPosted: Sun Oct 18, 2015 10:31 am  (#280) 
Offline
GimpChat Member
User avatar

Joined: Jun 02, 2013
Posts: 1937
Location: Central Illinois
Rod wrote:
The Warrior wrote:
Way too lazy to read through this, but is there anyway to add the program "Unshake" to shellout?

Yes. When you open the Unshake folder you will see a file named "Launch.bat" point Shellout to this executable file like such.

  ["Unshake", "\"C:\\Portables\\Unshake\\Launch.bat\"", "png"],


Be sure to point to the correct folder destination path. Mine just happens to be c:\\Portables\\Unshake.
DON'T forget to double slash or Shellout won't find the directory.

It seems to have found it, but when I activate Unshake through Shellout, it makes a new visible layer, then that's all it does. The Unshake program itself isn't showing up. Here's the code I added:

Image

_________________
Image


Top
Post new topic Reply to topic  [ 293 posts ]  Go to page Previous  1 ... 25, 26, 27, 28, 29, 30  Next

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) ShellOut Help please [Solved]

26

No new posts Attachment(s) [Plugin]Nik Collection - ShellOut doesn't show

22

No new posts mourning an external hard drive

5

No new posts Experiences with other art programs?

16

No new posts Not sure why GIMP is not download to external hard drive?

10



* Login  



Powered by phpBB3 © phpBB Group