win32utils:get_app_path() unable to obtain path for standard wordpad.exe

Bug #392046 reported by Alexander Belchenko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Fix Released
Undecided
Alexander Belchenko

Bug Description

For Bazaar Explorer we need to get full path of wordpad.exe standard windows editor. To get the full path we need to use get_app_path() function from win32utils.py module. This function uses very naive approach to read data from registry and currently supports only plain strings (REG_SZ data type). Unfortunately wordpad.exe path defined as REG_EXPAND_SZ and on Windows 2000/XP has the value:
"%ProgramFiles%\Windows NT\Accessories\WORDPAD.EXE"

To get right path the get_app_path() should understand REG_EXPAND_SZ data type.

Tags: win32
Revision history for this message
Alexander Belchenko (bialix) wrote :

This bug affects Bazaar Explorer GUI, see https://bugs.launchpad.net/bugs/391345

Changed in bzr:
assignee: nobody → Alexander Belchenko (bialix)
status: New → Confirmed
tags: added: win32
Changed in bzr:
status: Confirmed → Fix Committed
Revision history for this message
Alexander Belchenko (bialix) wrote :

merged as bzr.dev revno.4488

Changed in bzr:
status: Fix Committed → Fix Released
Vincent Ladeuil (vila)
Changed in bzr:
milestone: none → 1.17
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.