We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 479 - SDLMain produces stdout.txt and stderr.txt in bad directories
Summary: SDLMain produces stdout.txt and stderr.txt in bad directories
Status: RESOLVED WONTFIX
Alias: None
Product: SDL
Classification: Unclassified
Component: main (show other bugs)
Version: 1.2.9
Hardware: x86 Windows (All)
: P2 trivial
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords: target-1.2.14
Depends on:
Blocks:
 
Reported: 2007-08-16 04:03 UTC by Michael Kalous
Modified: 2017-05-29 16:29 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Kalous 2007-08-16 04:03:03 UTC
MinGW under Windows. When SDLMain is linked to a program, the program creates stdout.txt and stderr.txt files. These files are generated in current directory,
instead of the directory, where the binary file (.exe) is located.
Comment 1 Ryan C. Gordon 2007-08-16 11:55:05 UTC
We can't necessarily write to the directory where the .exe is located (say, it's a Vista system with a game installed by the admin).

If this gets changed, perhaps we should write this to somewhere under "My Documents" or whatever it's called now (or have a way to just disable it for people that don't care about the text files)?

--ryan.

Comment 2 Michael Kalous 2007-08-20 01:18:59 UTC
(In reply to comment #1)
> We can't necessarily write to the directory where the .exe is located (say,
> it's a Vista system with a game installed by the admin).
> If this gets changed, perhaps we should write this to somewhere under "My
> Documents" or whatever it's called now (or have a way to just disable it for
> people that don't care about the text files)?
> --ryan.

That's true. An equiavalent of $HOME should be more appropriate on systems
that handle user privileges.

Why I consider current directory as bad location ? Imagine that user associates
some mimetype (or file extension) to a program which uses SDL. Then double-click opened file will result in stdout.txt in it's directory.




Comment 3 Ryan C. Gordon 2009-09-13 16:33:11 UTC
Tagging this bug with "target-1.2.14" so we can try to resolve it for SDL 1.2.14.

Please note that we may choose to resolve it as WONTFIX. This tag is largely so we have a comprehensive wishlist of bugs to examine for 1.2.14 (and so we can close bugs that we'll never fix, rather than have them live forever in Bugzilla).

--ryan.
Comment 4 Sam Lantinga 2009-09-20 22:57:58 UTC
SDL 1.3 no longer generates these files.  Since they're intended for debugging only, I'm going to punt for SDL 1.2.