Difficult to associate a Wine application as a handler or default handler for a file type
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Nautilus |
Unknown
|
Wishlist
|
|||
Wine |
Fix Released
|
Medium
|
|||
wine (Ubuntu) |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
Binary package hint: wine
If I install Photoshop in Wine, it offers to automatically associate itself with jpeg files. This doesn't work - double clicking jpegs still opens them with the default viewer. Right clicking them also doesn't even list Photoshop as an option.
If I want to manually add Photoshop, either as the default application or something to Open With, then this too is very difficult; I have to write a script involving winepath and other complicated nonsense.
What we need is some automagical glue code that can list installed Windows applications right alongside the others. This will require generating .desktop files (with their own winepath entries inside) for every Windows application that gets installed which the user might want to open with (I believe Windows has an API for this, since there's a similar listing of applications within Windows).
Changed in wine: | |
importance: | Undecided → Wishlist |
status: | New → Confirmed |
Changed in wine: | |
status: | Unknown → Confirmed |
Changed in wine: | |
status: | Confirmed → Invalid |
Changed in wine: | |
status: | Invalid → Unknown |
Changed in wine: | |
status: | Unknown → In Progress |
Changed in nautilus: | |
status: | Unknown → New |
Changed in wine (Ubuntu): | |
status: | Confirmed → Triaged |
Changed in wine: | |
status: | In Progress → Fix Released |
Changed in nautilus: | |
status: | New → Invalid |
Changed in wine: | |
importance: | Unknown → Medium |
Changed in nautilus: | |
importance: | Unknown → Wishlist |
status: | Invalid → Unknown |
To reproduce:
1) Start with a clean .wine profile just to make sure (delete .wine and run wineprefixcreate)
2) Install Microsoft Office Word Viewer 2003. Installation should succeed without problems.
3) Create a shortcut in KMenu (in KDE) or Applications menu (in Gnome). The command should look similar to this:
env WINEPREFIX= "/home/ bamm/.wine" wine "C:\Program Files\Microsoft Office\ OFFICE11\ WORDVIEW. EXE"
depending, of course, on the installation path you selected, and label it Microsoft Office Word Viewer 2003 (or whatever you please).
Note that this step may be unneccessary because Wine may have already created this shortcut for you.
4) Associate *.doc files (application/ msword) with the Microsoft Office Word Viewer 2003.
5) Double click on a *.doc file. Word Viewer opens but the document does not open.
==
Analysis:
It seems the wrong path to the document is sent to Word Viewer. To test this, replace wordview.exe with a script that displays the full path name.
You can see this problem without actually associating *.doc files with the viewer. In my desktop you can right-click on a *.doc file, select Open With, choose Other, then browse to the shortcut you created in Step 3. The result is the same; Word Viewer opens but the document is not loaded.