Follow-up Comment #2, bug #15453 (project mypaint):
This depends on how the DLLs are referenced. According to a documentation of
an API function "CreateProcess", the OS looks in a directory from which the
application was loaded first. Later, it looks in the current directory.
Hence, settings the current directory should not cause a problem. However,
this depends on how the DLLs are accessed.
Still, I would not try to change the current directory. IMHO, a safer
solution would be a variable in a configuration file, e.g.,
'default_file_directory'. The variable would be initialized during
instalation or the first execution of the application. If the variable would
be missing or it would point to an invalid directory at the startup, the
working directory would be used.
Such a solution should work properly on Windows or any other OS while it
would not break any current functionality in Linux or Windows. Among others,
this would allow implementing a fuctionality where the last used directory
could be reused when the application is executed the next time.
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?15453>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Mypaint-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/mypaint-bugs