Closed
Bug 497067
Opened 16 years ago
Closed 6 years ago
avmshell's System class needs an API for getting the executable name
Categories
(Tamarin Graveyard :: Virtual Machine, enhancement)
Tamarin Graveyard
Virtual Machine
Tracking
(Not tracked)
RESOLVED
WONTFIX
Future
People
(Reporter: lhansen, Unassigned)
Details
We should support eg System.getExecutablePath.
-----
Background:
In bug #487199, zwetan replies to a comment by Edwin:
>
> * iirc, windows has an api for getting the exe pathname, and
> i'm not sure if argv[0] is reliable. but still a good starting
> point for generic unixlike shells.
>
I patched a bit the avmshell to support argv[0] (badly needed it for projector)
see
http://code.google.com/p/redtamarin/source/browse/trunk/src/shell/SystemClass.cpp#169
http://code.google.com/p/redtamarin/source/browse/trunk/src/shell/SystemClass.cpp#189
http://code.google.com/p/redtamarin/source/browse/trunk/src/shell/shell_toplevel.as#81
http://code.google.com/p/redtamarin/source/browse/trunk/src/shell/avmshell.cpp#498
http://code.google.com/p/redtamarin/source/browse/trunk/src/shell/avmshell.cpp#896
under OSX/Linux I simply used the argv[0] or reuse the 'executablePath' var
under Windows I used GetModuleFileName (Mmsystem.h)
I didn't extensively tested it but it's working pretty consistant so far
Reporter | ||
Updated•15 years ago
|
Target Milestone: --- → Future
Updated•14 years ago
|
Flags: flashplayer-qrb+
Comment 1•6 years ago
|
||
Tamarin isn't maintained anymore. WONTFIX remaining bugs.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•