I am using lupu-528.005 , i installed a windows app eg. say foxitreader.exe using wine.It installed ok, but it didnt show up in menu secondly what do i do if i want to make this wine installed foxit my default reader in puppy.
Thank you

Code: Select all
#! /bin/sh
a=${1/\//Z:\\}
a=${a//\//\\}
wine /usr/local/kool/SAflashplayer7.exe "$a"
eg: exec wine "followed by location of exe file" "$@"nic007 wrote:...Say for instance you want to make a windows program called "spreadsheet" your default spreadsheet handler, right-click on the defaultspreadsheet script and choose open as text. Then edit the execution path eg: exec wine "followed by location of exe file". Alternative: Right-click on a file with the extension you want to open with a windows program and select "set run-action to". In the bottom space fill in the path of the executable eg: wine "followed by path of executable". In my experience this defaut handling does not always work perfectly for windows applications. For instance, I have a word processor called Atlantis, when I click a specific file associated with it, Atlantis will run but the specific file will not open I have to open it from within Atlantis. ...
Yes that must obviously follow but it does not fix the specific problem. It seems to have something to do with the specific windows program you use. Some work "right" others don'tversion2013 wrote:eg: exec wine "followed by location of exe file" "$@"nic007 wrote:...Say for instance you want to make a windows program called "spreadsheet" your default spreadsheet handler, right-click on the defaultspreadsheet script and choose open as text. Then edit the execution path eg: exec wine "followed by location of exe file". Alternative: Right-click on a file with the extension you want to open with a windows program and select "set run-action to". In the bottom space fill in the path of the executable eg: wine "followed by path of executable". In my experience this defaut handling does not always work perfectly for windows applications. For instance, I have a word processor called Atlantis, when I click a specific file associated with it, Atlantis will run but the specific file will not open I have to open it from within Atlantis. ...
eg. wine "followed by path of executable" "$@"
Does adding "$@" or "$1" (with quotes) fix that issue?
I have noticed that extra bit when I open different scripts in /root/Choices/MIME-types/
Code: Select all
#! /bin/sh
exec /root/Choices/MIME-types/application_x-my-wine-apps-starter "$@"
Code: Select all
#! /bin/sh
#------------------------------------------------------------------------------
# Load Wine SFS and execute Windows .exe Application
#------------------------------------------------------------------------------
# Set Name of your Wine SFS here
WineSFS="LP2_WineCorelSuite.sfs"
FileLoopMnt() { mount |grep loop* |sed 's# .*$##' | while read N
do losetup-FULL $N |grep $WineSFS |sed 's#^.* .##;s#.$##' ;done ; }
fm=$(FileLoopMnt)
bfm=`basename $fm`
if [ "$bfm" = "" ]; then
sfs_load --cli --skip-fixmenus --quiet "$WineSFS"
exec wine "$@"
else
exec wine "$@"
fi
Code: Select all
exec wine /mnt/sdc1/PortableApplications/PortableApps/AudacityPortable/AudacityPortable.exe "$1"
Code: Select all
exec wine /mnt/sdc1/PortableApplications/PortableApps/AudacityPortable/AudacityPortable.exe "$@"
Code: Select all
exec wine start /Unix "/root/.wine/drive_c/Program Files/Foxit Software/Foxit Reader/Foxit Reader.exe $@"
Code: Select all
In my experience this defaut handling does not always work perfectly for windows applications. For instance, I have a word processor called Atlantis, when I click a specific file associated with it, Atlantis will run but the specific file will not open I have to open it from within Atlantis.
Code: Select all
#!/bin/bash -a
#------------------------------------------------------------------------------
# Executing Corel Photopaint 8 in Wine and submit a File
# 2014-08-21 RSH for LazY Puppy
#------------------------------------------------------------------------------
SUBMIT="$1"
exec wine "C:\\Corel\\Graphics8\\Programs\photopnt.exe" "C:\\`basename "$SUBMIT"`" >/dev/null
# End
Code: Select all
exec wine "$@"
else
exec wine "$@"
Code: Select all
cp -af "$1" "/root/.wine/drive_c/"
/usr/local/bin/corelphotopaint-executor "$1" >/dev/null
#rox "/root/.wine/drive_c"
cp -af -u "/root/.wine/drive_c/`basename "$1"`" "$1"
rm -f "/root/.wine/drive_c/`basename "$1"`"
#######################
else # [ "$bfm" = "" ];
#######################
cp -af "$1" "/root/.wine/drive_c/"
/usr/local/bin/corelphotopaint-executor "$1" >/dev/null
#rox "/root/.wine/drive_c"
cp -af -u "/root/.wine/drive_c/`basename "$1"`" "$1"
rm -f "/root/.wine/drive_c/`basename "$1"`"
I only have one program that has this issue. It's a word processor called Atlantis. I run all my windows programs directly from my second partition (sda5) where I have Windows installed. So the exe file for this will be in /mnt/sda5/Program Files/Atlantis/Atlantis.exe. I'm not quite sure I follow your method above but wouldn't it be possible to just add something extra in " set run action to" for the specific file extention?RSH wrote:This different behavior of applications for Wine is not dependent specifically on the application, but on the type of the application.Code: Select all
In my experience this defaut handling does not always work perfectly for windows applications. For instance, I have a word processor called Atlantis, when I click a specific file associated with it, Atlantis will run but the specific file will not open I have to open it from within Atlantis.
Example:
Audacity is a Cross-Platform-Audio-Editor. So it's code knows how to handle path's like /mnt/sda1. Even the Windows version. Since true Windows applications did never seen any GNU/Linux File System, they can't handle path's starting with /mnt.
Since the beginning of my Forum activities and LazY Puppy development I do own a 300 MB Wine SFS which has Corel Photopaint 8 installed. Since these days I tried to get this to work, to send .cpt files directly to the Wine SFS, executing Photopaint and loading the file. Everything works, except loading the file.
So due to this discussion I did again some work on this -have planned this already long time ago- and do you know what?
I did solve this! I'm able now to send a .cpt file directly into Corel Photopaint 8 to start editing immediately. Even though it doesn't know path's starting with /mnt!
So, here is what I've done:
Created a Script called, corelphotopaint-executor, including the following code:Placed this Script into /usr/local/bin.Code: Select all
#!/bin/bash -a #------------------------------------------------------------------------------ # Executing Corel Photopaint 8 in Wine and submit a File # 2014-08-21 RSH for LazY Puppy #------------------------------------------------------------------------------ SUBMIT="$1" exec wine "C:\\Corel\\Graphics8\\Programs\photopnt.exe" "C:\\`basename "$SUBMIT"`" >/dev/null # End
From my 2nd Script above, I've replaced thiswith thisCode: Select all
exec wine "$@" else exec wine "$@"
I have called this Script, defaultcorelphotoeditor, and put it into /usr/local/bin. Then I've set the default run action of .cpt files to command: /usr/local/bin/defaultcorelphotoeditor "$@"Code: Select all
cp -af "$1" "/root/.wine/drive_c/" /usr/local/bin/corelphotopaint-executor "$1" >/dev/null #rox "/root/.wine/drive_c" cp -af -u "/root/.wine/drive_c/`basename "$1"`" "$1" rm -f "/root/.wine/drive_c/`basename "$1"`" ####################### else # [ "$bfm" = "" ]; ####################### cp -af "$1" "/root/.wine/drive_c/" /usr/local/bin/corelphotopaint-executor "$1" >/dev/null #rox "/root/.wine/drive_c" cp -af -u "/root/.wine/drive_c/`basename "$1"`" "$1" rm -f "/root/.wine/drive_c/`basename "$1"`"
The whole mystery is to copy the file to /root/.wine/drive_c and to send it to the Wine application from its new location. After exiting the Wine application copying the file back to original (with mode update only, -u) and remove the file at its new location.
That's just all.
Currently this needs to be done for each Wine application separately where such performance would be needed to send a file directly to a Wine application.
I'm a Hacker
(Richard Stallman, RSH)
I have worked on this again and again since I've joined the Forum, but until today I didn't found any other solution. Only copying the File to /root/.wine/drive_c did work. Just doing a symbolic e.g. will load the file, but saving from Wine program overwrites the symbolic link instead saving to the linked file.I only have one program that has this issue. It's a word processor called Atlantis. I run all my windows programs directly from my second partition (sda5) where I have Windows installed. So the exe file for this will be in /mnt/sda5/Program Files/Atlantis/Atlantis.exe. I'm not quite sure I follow your method above but wouldn't it be possible to just add something extra in " set run action to" for the specific file extention?
Confirmed!mikeb wrote:Geoffrey it sounds like you have a neat solution for that buried in this thread... much easier than miniscripts
Code: Select all
#!/bin/bash -a
#------------------------------------------------------------------------------
# Executing Corel Photopaint 8 in Wine and submit a File
# 2014-08-21 RSH for LazY Puppy
#------------------------------------------------------------------------------
SUBMIT="$1"
#exec wine "C:\\Corel\\Graphics8\\Programs\photopnt.exe" "C:\\`basename "$SUBMIT"`" >/dev/null
exec wine start /Unix "/root/.wine/drive_c/Corel/Graphics8/Programs/photopnt.exe $@"
# End
Code: Select all
cp -af "$1" "/root/.wine/drive_c/"
/usr/local/bin/corelphotopaint-executor "$1" >/dev/null
#rox "/root/.wine/drive_c"
cp -af -u "/root/.wine/drive_c/`basename "$1"`" "$1"
rm -f "/root/.wine/drive_c/`basename "$1"`"
#######################
else # [ "$bfm" = "" ];
#######################
cp -af "$1" "/root/.wine/drive_c/"
/usr/local/bin/corelphotopaint-executor "$1" >/dev/null
#rox "/root/.wine/drive_c"
cp -af -u "/root/.wine/drive_c/`basename "$1"`" "$1"
rm -f "/root/.wine/drive_c/`basename "$1"`"
Code: Select all
/usr/local/bin/corelphotopaint-executor "$1" >/dev/null
#######################
else # [ "$bfm" = "" ];
#######################
/usr/local/bin/corelphotopaint-executor "$1" >/dev/null
While working on my hack, I did use the terminal to get some information from Wine (# wine --help) (I do use 1.3.13), but Wine doesn't come up with any information about options like start and /Unix.Geoffrey wrote:I use this command to run windows apps, as an example:the quotes are needed if there are spaces in the path or file namesCode: Select all
exec wine start /Unix "/root/.wine/drive_c/Program Files/Foxit Software/Foxit Reader/Foxit Reader.exe $@"
I found these:RSH wrote: While working on my hack, I did use the terminal to get some information from Wine (# wine --help) (I do use 1.3.13), but Wine doesn't come up with any information about options like start and /Unix.
Where to find such information?