Re: [Monkeymessenger-list] SVN rev 189 bug
Status: Alpha
Brought to you by:
thiago_sayao
|
From: Guillaume B. <gui...@gm...> - 2007-05-18 00:55:24
|
I had the same bug so i looked at the code,
in MonkeyMSN.cs
string user = UnixUserInfo.GetLoginName();
string localedir = (new UnixUserInfo(user).HomeDirectory +
"/.monkeymsn/locale");
in my case the GetLoginName() function returned nothing so the user
string was empty and UnixUserInfo(user).HomeDirectory failed
i found a fix but it's not really elegant, at least it work, just change
those line by these
string path =
Environment.GetFolderPath(Environment .SpecialFolder.ApplicationData);
int lastslash = path.LastIndexOf("/");
path = path.Substring(0,lastslash);
string localedir = path + "/.monkeymsn/locale";
then rebuild
On Thu, 2007-05-17 at 00:40 +1000, Patrick Ohearn wrote:
> The latest revision of svn crashes on execution, rev 189.
>
>
> Unhandled Exception: System.ArgumentException: invalid username
> Parameter name: user
> at Mono.Unix.UnixUserInfo..ctor (System.String user) [0x00000]
> at MonkeyMSN.Base.MonkeyMessenger.Main (System.String[] args)
> [0x00000]
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________ Monkeymessenger-list mailing list Mon...@li... https://lists.sourceforge.net/lists/listinfo/monkeymessenger-list
|