LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 12-29-2005, 11:12 AM   #1
arckane
Member
 
Registered: Sep 2005
Location: UK
Distribution: Gentoo/Debian/Ubuntu
Posts: 306

Rep: Reputation: 37
Question GQView and Paint Shop Pro - Opening files!


Hi folks

I've finally gotten my wife to transition to Gentoo, but she's missing some simple Windows based apps. One of the main ones was being able to browse thumbnails in Explorer and then directly open them in Paint Shop Pro for editing. She's not keen on Gimp so I installed Wine and Paint Shop Pro which work perfectly.

The problem I have is that I can't seem to associate JPG files to open in PSP under KDE/Konquerer. If I associate JPG to PSP it automatically opens PSP but the file that was selected isn't opened, just the application. I've added %U on the end like most other Graphics apps in the mime type associations.

I thought it may be a bug with KDE so I installed GQview and as an external editor I added the following:

wine ~/.wine/drive_c/Program\ File/Jasc/Paint\ Shop\ Pro/psp.exe %f

I added the %f as the other external editors also had this one the end. Yet again, when I ask GQView to open a file for editing in PSP it manages to open PSP fine, but doesn't open the image I selected.

Any help or hints? BTW, this works fine under Windows but I'm desperate to keep her away from it as you can imagine
 
Old 12-29-2005, 02:00 PM   #2
Harmaa Kettu
Member
 
Registered: Apr 2005
Location: Finland
Posts: 196

Rep: Reputation: 30
PSP doesn't find the file because KDE and GQview are giving it unix-style /path/to/the/file.jpg that it doesn't understand.

This wrapper script assumes you have the root filesystem mapped as Z drive in wine, like it is in the default configuration. Save it as /usr/local/bin/run_psp or something similar, make it executable with chmod +x and associate image files to it, using the %U or %f as you did before.
Code:
#!/bin/sh

win_name=`echo -n $1 | perl -pe 's|/|\\\\|g; print "Z:"' -`
exec wine ~/.wine/drive_c/Program\ File/Jasc/Paint\ Shop\ Pro/psp.exe $win_name
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Wine and Paint Shop Pro 9 ?? valerie_tux Linux - Software 10 04-10-2010 01:15 AM
Is there a Paint Shop Pro for Linux OldSarge Linux - Software 35 12-12-2007 12:14 PM
Wine and Paint Shop Pro 8 - Need Help matthurne Linux - Software 5 12-07-2007 08:19 AM
app to read paint shop pro format? xslf Linux - Software 2 12-29-2003 03:27 PM
WINE : Paint Shop Pro 8 ionstorm Linux - Software 12 09-14-2003 08:20 PM


All times are GMT -5. The time now is 11:43 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration