Wine 1.1.30 + winetricks +color setter +goodies ...pet & sfs

Virtual machines, emulation, etc.
Message
Author
mcewanw
Posts: 3169
Joined: Thu 16 Aug 2007, 10:48
Contact:

mime types and wine

#241 Post by mcewanw »

mime types and wine:

http://www.murga-linux.com/puppy/viewto ... 429#363429

Example for MS Office files:

http://www.murga-linux.com/puppy/viewto ... 288#364288

Note that you could modify, for example, ~/Choices/MIME-types/application_ms-word to:

Code: Select all

#!/bin/sh
exec wine "/root/.wine/drive_c/Program Files/Microsoft Office/Office/word.exe" "${@//\//\\}" 
[assuming you have word in the above path; might be msword.exe, I can't remember - I don't have it on my system any more...
Note that you don't need to modify the /usr/share/mime/globs file since the mime types application/msword and application/vnd-ms.excel are already correctly defined in there].

and also modify: ~/Choices/MIME-types/application_vnd-ms.excel to:

Code: Select all

#!/bin/sh
exec wine "/root/.wine/drive_c/Program Files/Microsoft Office/Office/excel.exe" "${@//\//\\}" 
Now clicking on doc and xls files should correctly open the appropriate MS Office application running over wine.
[You DO NOT need to also right click the icon to set the Run Action when using this method, though doing it that way is an alternative - you'd still need to use the likes of "${@//\//\\}" rather than a plain "$@" though].


mime more generally:

http://www.murga-linux.com/puppy/viewto ... 990#363990
Last edited by mcewanw on Sun 22 Nov 2009, 12:08, edited 1 time in total.
github mcewanw

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#242 Post by musher0 »

Hello again, ttuuxx!

One other thing, not to get you into trouble if Madame is the perfectionist type.

green_dome's wine works ok in dpup, except the rendering of the icons and the cursor is not the greatest.

Additional lib would be mesa something, gposil has a picture of the listing in the dpup forum.

Same gposil and others told me not to install the xorg 7.3 drivers recommended by green_dome, given that dpup has a more recent Xorg, apparently.

In any case, I installed additional recent libs as follows, which improved the rendering a bit. I just compiled the lcms 1.19, it's not a pet (yet!).

I hope this helps.
Attachments
recent-libs-for-wine-1133-under-dpup.jpg
(64.01 KiB) Downloaded 455 times
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

Re: mime types and wine

#243 Post by ttuuxxx »

mcewanw wrote:mime types and wine:

http://www.murga-linux.com/puppy/viewto ... 429#363429

Example for MS Office files:

http://www.murga-linux.com/puppy/viewto ... 288#364288

Note that you could modify, for example, ~/Choices/MIME-types/application_ms-word to:

Code: Select all

#!/bin/sh
exec wine "/root/.wine/drive_c/Program Files/Microsoft Office/Office/word.exe" "${@//\//\\}" 
[assuming you have word in the above path; might be msword.exe, I can't remember - I don't have it on my system any more...
Note that you don't need to modify the /usr/share/mime/globs file since the mime types application/msword and application/vnd-ms.excel are already correctly defined in there].

and also modify: ~/Choices/MIME-types/application_vnd-ms.excel to:

Code: Select all

#!/bin/sh
exec wine "/root/.wine/drive_c/Program Files/Microsoft Office/Office/excel.exe" "${@//\//\\}" 
Now clicking on doc and xls files should correctly open the appropriate MS Office application running over wine.
[You DO NOT need to also right click the icon to set the Run Action when using this method, though doing it that way is an alternative - you'd still need to use the likes of "${@//\//\\}" rather than a plain "$@" though].


mime more generally:

http://www.murga-linux.com/puppy/viewto ... 990#363990
execllent that was close it was
exec wine "/root/.wine/drive_c/Program Files/Microsoft Office/OFFICE11/WINWORD.EXE" "${@//\//\\}"

which worked :) Plus I have her favourite game working now Bejeweled 2 :) I was really impressed with that, the sound and speed is perfect :)
One last thing, any ideas on setting the fonts to display clearer, they print fine but not the best in word.
below is a example
Attachments
text.jpg
here is a example
(177.89 KiB) Downloaded 423 times
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#244 Post by mikeb »

Notice ttuuxxx in the post above he 'cd' first to the program folder...that may be needed for office as I find many wine programs do not run without it.
I modded the exe mime script to cd too by extracting the path from the wine launch address
eg

Code: Select all

#! /bin/bash

cd "${@%/*}"
wine "$@"  
Then the path would need changing to windows format....
example..

Code: Select all

#! /bin/sh
cd /path/to/officefolder

a=${1/\//Z:\\}
a=${a//\//\\}

wine /path/to/word.exe "$a"
the cd may not be needed ...

mike

mcewanw
Posts: 3169
Joined: Thu 16 Aug 2007, 10:48
Contact:

Improving fonts in wine

#245 Post by mcewanw »

To make the wine fonts look nice in MS Office, copy some ttfonts into the ~/.wine windows/Fonts directory (or better still, symlink that to the Puppy ttfonts folder). gposil provided some pets of the ms core fonts somewhere on the forum.

Also, you need to follow vovchik's instructions provided in this thread:

http://www.murga-linux.com/puppy/viewto ... 38&t=39134

Then the fonts will all look pretty...
Last edited by mcewanw on Fri 17 May 2013, 12:07, edited 1 time in total.
github mcewanw

User avatar
otropogo
Posts: 764
Joined: Sat 24 Oct 2009, 15:17
Location: Montreal
Contact:

why two Wine threads, how to choose?

#246 Post by otropogo »

I'm trying to figure out how best to install Wine on Puppy 4.3.1, but am finding this thread hard reading, starting with the pxt.pet patch, the function of which I don't understand, especially how it will affect petget's ability to work with older packages.

I'm hoping I don't have to work my way through all 17 pages of this thread, let alone the other several hundred hits I get when searching "Wine". I noticed another thread called "Wine 1.1 and 1.1.23.." IIRC when doing a previous search, but it seems to have been dormant since August, and now I can't even find it again... So I can only guess how many threads are actually dedicated to this subject.

My modest immediate goal is to install a recent version of Irfanview under Wine.
otropogo@gmail.com facebook.com/otropogo

User avatar
vtpup
Posts: 1420
Joined: Thu 16 Oct 2008, 01:42
Location: Republic of Vermont
Contact:

#247 Post by vtpup »

Just load the 1.1.28 .pet on the first page. If you don't like it or it doesn't work, for you, just remove it.

It works fine with everything I've thrown at it. Including a tough 3D CAD program and MSOffice2000.

User avatar
otropogo
Posts: 764
Joined: Sat 24 Oct 2009, 15:17
Location: Montreal
Contact:

#248 Post by otropogo »

vtpup wrote:Just load the 1.1.28 .pet on the first page. If you don't like it or it doesn't work, for you, just remove it.

It works fine with everything I've thrown at it. Including a tough 3D CAD program and MSOffice2000.
Ok. I installed it. Now I just need to find a current pet for Irfanview to try it.

thanks
otropogo@gmail.com facebook.com/otropogo

mcewanw
Posts: 3169
Joined: Thu 16 Aug 2007, 10:48
Contact:

#249 Post by mcewanw »

otropogo wrote:Ok. I installed it. Now I just need to find a current pet for Irfanview to try it.
Actually, with wine you would normally install the windows application using its normal windows installer. Say for example Irfanview installer was called setup.exe, you would open an rxvt console on Puppy and enter:

Code: Select all

wine setup.exe
Personally, for the case of IrfanView, I just copied a previously installed IrfanView folder, including its executable, from a MS windows installation I had on a different partition, and the executable simply ran without any fuss. You can also run it directly from the windows partition (such practice doesn't work with all windows apps; often you have to install them specially under wine). I'm not sure about the latest IrfanView though; mine is version 4.0

Note that to actually run windows .exe apps you generally need to first Set the Run Action by right-clicking on any .exe program icon and selecting "Set Run Action". Then you type in the bottom box titled "Enter a shell command" the following:

Code: Select all

wine "@"
After doing that, any file whose extension is .exe will be run by wine if you single click on the relevant program's icon (e.g. irfanview or i_view or whatever it is called) in a Rox window. You can also drag the program icon to the desktop (and supply it with an icon if you wish (by right click "Set Icon").

There are other ways of doing the above, but in this case "Set Run Action" is probably the simplest.
github mcewanw

Peterm321
Posts: 411
Joined: Thu 29 Jan 2009, 14:09
Location: UK

#250 Post by Peterm321 »

After doing that, any file whose extension is .exe will be run by wine if you single click on the relevant program's icon (e.g. irfanview or i_view or whatever it is called)
I have irfanview on a USB drive, and I only have 4 files:

I_VIEW32.CNT
I_VIEW32.EXE
I_VIEW32.INI

and a plugins folder containing EFFECTS.DLL

It does not need installing, WINE will run the EXE with whatever
settings are in the INI file.

Henry
Posts: 863
Joined: Sun 30 Jul 2006, 02:28
Location: Oregon USA
Contact:

#251 Post by Henry »

I have irfanview on a USB drive, and I only have 4 files:
I_VIEW32.CNT
I_VIEW32.EXE
I_VIEW32.INI
and a plugins folder containing EFFECTS.DLL
I understood that MFC42.dll was required to run Irfanview. Perhaps you have it elsewhere on your computer?

Henry

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#252 Post by mikeb »

The wine file association pup was around years ago...is this simple function still not included?

mike

User avatar
vtpup
Posts: 1420
Joined: Thu 16 Oct 2008, 01:42
Location: Republic of Vermont
Contact:

#253 Post by vtpup »

otropogo wrote: Ok. I installed it. Now I just need to find a current pet for Irfanview to try it.

thanks
pet? in Wine?

User avatar
otropogo
Posts: 764
Joined: Sat 24 Oct 2009, 15:17
Location: Montreal
Contact:

#254 Post by otropogo »

vtpup wrote:
otropogo wrote: Ok. I installed it. Now I just need to find a current pet for Irfanview to try it.

thanks
pet? in Wine?
IIRC, I installed Irfanview98 via a pet a year or so ago, and it worked nicely.

OTOH, I'm having some worries about the Wine 1.1.28 pet I installed yesterday.

I found three tabs for it in Menu/documents
/Wine notepad
/Wine wordpad
/Wine write

Today I happened to open Menu/Utility and found eleven more Wine tabs there!
/clock
/config
/control panel
/help vierwer
/progman
/regedit
/regedit
/remove programs
/task manager
/tricks
/version
Oh, and Menu/System has /Wine File, while Menu/Fun has /Wine Mine?

Is this normal?

I tried Menu/Utility/Wine Help Viewer, but couldn't find any help there.When I tried Wine Help Help, I got an error message saying
Cannot find 'winhelp.hlp'. Do you want to find this file yourself?
Yes No
And was then invited to input a file name, to which it responded,
ERROR
Error while reading the help file 'winhelp.hlp'
OK
OK! I guess, since there's no other option...
otropogo@gmail.com facebook.com/otropogo

User avatar
vtpup
Posts: 1420
Joined: Thu 16 Oct 2008, 01:42
Location: Republic of Vermont
Contact:

#255 Post by vtpup »

Those are normal menu entries for that wine pet. They are helper programs. You should study and familiarize yourself with Wine if you're going to be using it. There are other resources on the web including the WineHq for that. Read their FAQ This thread is generally for announcements of new Wine versions -- you won't find a wine usage tutorial here.

If you'd rather raise these helper programs from the terminal than see them in the menu, there are other wine pets in this thread that are stripped, and there's one that consists of the helpers, but no menu entries. I'm afraid you're going to have to read the thread for that kind of thing.

Wine requires a fair amount of study and familiarity to get the most out of. It is naturally complex because it bridges both Windows and Linux, and includes it's own virtual filesystem and windows registry. However it is vastly improved compared to using it a couple years ago, and is very useful now for some very difficult Windows programs.

Good Luck!

User avatar
vtpup
Posts: 1420
Joined: Thu 16 Oct 2008, 01:42
Location: Republic of Vermont
Contact:

#256 Post by vtpup »

I've noticed a number of people talking about hand creating icons to run windows programs in wine.

I automatically get the custom OEM icons from the windows programs in a /root/Desktop folder, which is linked to .local/share/applications/wine/Programs

Those icons are created when the windows programs are installed.

I just drag the icons to the real desktop, and they run fine. I usually rename them since they always have a ".desktop" extension.

You can also find the icon graphics (xpms) in .local/share/icons. These aren't program launchers like the others, just graphic icons.

User avatar
otropogo
Posts: 764
Joined: Sat 24 Oct 2009, 15:17
Location: Montreal
Contact:

#257 Post by otropogo »

vtpup wrote:Those are normal menu entries for that wine pet. They are helper programs. You should study and familiarize yourself with Wine if you're going to be using it.
That's what I was trying to do when I clicked on the 'Wine Help Viewer" tab.

But since you've evidently done your studying, maybe you can tell me what that tab is supposed to do, if not provide help in using Wine?

....
Wine requires a fair amount of study and familiarity to get the most out of. It is naturally complex because it bridges both Windows and Linux, and includes it's own virtual filesystem and windows registry. However it is vastly improved compared to using it a couple years ago, and is very useful now for some very difficult Windows programs.
Well, that's nice. A really useful program if only you can figure out how to use it (and maybe stop it from cluttering up all your program menus).

But for now, I wish I could just find the package I installed in a minute a year ago and run Irfanview without first having to study an 18 page thread and assorted other online materials..
otropogo@gmail.com facebook.com/otropogo

User avatar
vtpup
Posts: 1420
Joined: Thu 16 Oct 2008, 01:42
Location: Republic of Vermont
Contact:

#258 Post by vtpup »

But for now, I wish I could just find the package I installed in a minute a year ago and run Irfanview without first having to study an 18 page thread and assorted other online materials..
http://www.murga-linux.com/puppy/viewtopic.php?t=31173&
http://dotpups.de/dotpups/Graphics/
That's what I was trying to do when I clicked on the 'Wine Help Viewer" tab.

But since you've evidently done your studying, maybe you can tell me what that tab is supposed to do, if not provide help in using Wine?
It is supposed to view a Windows program help file. You didn't ask it to open a Windows program help file. So it did what you asked.

Wine documentation isn't in the Wine pet. It's at WineHQ. Wine changes constantly. Their FAQ is very informative, and current. Better than my explanations, and briefer.

User avatar
eightbitz
Posts: 19
Joined: Sat 06 Dec 2008, 13:42
Location: Where Hell froze over AKA- Michigan

#259 Post by eightbitz »

Just curious -

I see that this pet installs multiple menu entries. How do you do that?

User avatar
otropogo
Posts: 764
Joined: Sat 24 Oct 2009, 15:17
Location: Montreal
Contact:

Wine1.1.29.pet - This program does not have a menu entry

#260 Post by otropogo »

Last time I used Wine under Puppy was more than a year ago. The latest Wine pet I could find then was 1.0. I installed it, then installed a pup for Irfanview 3.98, then also the latest package available, and Irfanview ran.

Now Irfanview is up to v. 4.25, but I can't find any Irfanview pet designated for Puppy 4.x How do I install and run Irfanview 4.25, and do I need to have a menu entry for Wine for it to work?
otropogo@gmail.com facebook.com/otropogo

Post Reply