Closed littlewhitecloud closed 2 months ago
This could be confusing if someone has two installations of jou, and the executables are named e.g. jou.exe
and jou2.exe
. Unlikely but technically possible.
How are you running jou? Jou uses argv[0]
for these messages, and usually argv[0]
is set to a shorter string, something like "jou.exe"
(Windows) or "./jou"
(MacOS and Linux).
It seems that the argv[0] didn't set to ".\jou".
Here's what it's supposed to look like:
Apparently this is a windows thing: https://stackoverflow.com/questions/7941536/windows-vs-linux-gcc-argv0-value
Using argv[0]
to refer to "this program" is a standard thing to do in C, and almost all other programs do it, so changing it could be a bad idea. That said, I can't think of anything that would go wrong practically if we just use "jou"
instead of argv[0]
. Even if someone has two jous installed, there are other ways to check which jou is being used.
Ok. Sorry to interrupt.
No problem, it was a good question and I didn't know argv[0]
is the full path on Windows :)
Before:
After: