* src/plugins/GraphViz.py: launch image viewer in Windows.

* src/Mime/_WinMime.py: handle rundll32.exe applications.
* src/Utils.py: search path in Windows when looking for applications.

svn: r7055
This commit is contained in:
Brian Matherly
2006-07-22 05:52:16 +00:00
parent 10f6d9aaa9
commit 388c0e88a4
4 changed files with 27 additions and 24 deletions

View File

@@ -70,9 +70,12 @@ def get_application(type):
# Find a friendly name for the application
if command.startswith('"'):
app = command.split('"')[1]
elif command.startswith('rundll32.exe'):
# Get the description of the DLL instead of the application
app = command.split()[1].split(',')[0]
else:
app = command.split()[0]
hcu = ConnectRegistry(None,HKEY_CURRENT_USER)
subkey = OpenKey(hcu, "Software\Microsoft\Windows\ShellNoRoam\MUICache")
desc = None