Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Very basic scripting help, Hey little icon, are you okay?< Next Oldest | Next Newest >
Your Fuzzy God Offline





Group: Members
Posts: 260
Joined: July 2005
Posted: Oct. 20 2005,22:56 QUOTE

I have Photshop installed and running via wine; however, for certain features to work I have to open xterm and cd to "/home/dsl/.wine/drive_c/Program Files/Adobe/Photoshop 7.0" then "sudo wine Photoshop.exe."  If I try to run Photoshop via the desktop icon, those features won't work.  

I have tried adding 2 "command:" lines to the lnk file (the first a cd, the second a run command) and while the program did open, it did not allow me to access the features.  

There has to be a simple script that opens the program and runs it in it's own directory, but I am at a loss as to what this script should contain.  Any help would be much appreciated!

Thanks!



P.S. (Preemptive Shhh!)  Before anyone asks, I want to use Photoshop because I learned on it and like it better than Gimp.  Just my personal preference.


--------------
Good Luck

-Fuzzy
www.mainframecomps.com
**Bienvienidos a la revolución**
Back to top
Profile PM WEB 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Oct. 21 2005,01:29 QUOTE

If you need to be in a specific directory to run a program, you can do it with a single command:
Code Sample
cd /home/dsl/.wine/drive_c/Program\ Files/Adobe/Photoshop\ 7.0; sudo wine Photoshop.exe

or
Code Sample
cd /home/dsl/.wine/drive_c/Program\ Files/Adobe/Photoshop\ 7.0 && sudo wine Photoshop.exe

The second one runs the second part of the command only if the first part succeeds.

If for some reason this doesn't work with xtdesk, then you can break the lines up and use a script instead:
Code Sample
#!/bin/sh
cd /home/dsl/.wine/drive_c/Program\ Files/Adobe/Photoshop\ 7.0
sudo wine Photoshop.exe


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
Your Fuzzy God Offline





Group: Members
Posts: 260
Joined: July 2005
Posted: Oct. 21 2005,14:39 QUOTE

Tried all three; all same result.  The program opens, but those extra features still don't work.  I am thinking of trying to open Photoshop like Synaptic (with a terminal window in the background).  Is there script I can use to open a terminal window and call the commands there?

Thanks,


--------------
Good Luck

-Fuzzy
www.mainframecomps.com
**Bienvienidos a la revolución**
Back to top
Profile PM WEB 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Oct. 21 2005,14:47 QUOTE

aterm -e sudo wine Photoshop.exe
or
aterm -e sudo su -c "wine Photoshop.exe"


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
Your Fuzzy God Offline





Group: Members
Posts: 260
Joined: July 2005
Posted: Oct. 21 2005,18:35 QUOTE

OUT OF MY WAY!! I'M A BIG TIME PROGRAMMER!!

.lnk file includes:
Code Sample
Command: aterm -title "Photoshop Loader" -e /home/dsl/.pshop.sh


.pshop.sh:
Code Sample
#!/bin/sh
cd /home/dsl/.wine/drive_c/Program\ Files/Adobe/Photoshop\ 7.0/
sudo wine Photoshop.exe 2>/dev/null


Yeah, this was really simple.  I guess there is just a learning curve going between a terminal to multiple commands through an executable file.  

Thank you so much mikshaw!


--------------
Good Luck

-Fuzzy
www.mainframecomps.com
**Bienvienidos a la revolución**
Back to top
Profile PM WEB 
4 replies since Oct. 20 2005,22:56 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: Very basic scripting help

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code