Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#84 closed enhancement (fixed)

Add DosSetExtLIBPATH to QProcess()

Reported by: dmik Owned by:
Priority: blocker Milestone: Qt Beta 3
Component: QtCore Version: 4.5.1 Beta 2
Severity: Keywords:
Cc:

Description

There is a common problem of searching for the right DLLs for the application being started in OS/2: by default, the OS/2 loader doesn't search for DLLs in the directory where the .exe is located (which is a very common and natural case) which requires to put the DLL to the system DLL location (badly bloating it) or craft a .cmd that sets a proper BEGINLIBPATH/ENDLIBPATH. Both ways suck.

I've got an idea to do DosSetExtLIBPATH() with the exe's path implicitly in QProcess before starting the application (and undo afterwards) to make this search location transparent both for the end user and for the Qt developer.

Unless I discover some bad side effects, I'll do it like that.

Change History (3)

comment:1 Changed 9 years ago by dmik

  • Resolution set to fixed
  • Status changed from new to closed

Done in r215.

comment:2 Changed 9 years ago by diver

i can confirm it works :)

comment:3 Changed 9 years ago by dmik

Good.

Note: See TracTickets for help on using tickets.