Re: [Monkeymessenger-list] SVN rev 189 bug
Status: Alpha
Brought to you by:
thiago_sayao
|
From: Mark B. <mar...@gm...> - 2007-05-18 12:59:22
|
Sorry i answer so late to this. This is not the right way to do it
either, I already got it, you just do a
Environment.GetEnvironmentVariable ("HOME") to get the home dir. I fixed
it. However Thiago I dont seem to be able to commit to svn.
The next step however is to refer to the {prefix}/share/locales, but
this prefix should be set during ./configure, i dont know how to do
that. So please any suggestions.
Mark
Guillaume Beland escribió:
> 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... <mailto:Mon...@li...> https://lists.sourceforge.net/lists/listinfo/monkeymessenger-list
>>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> 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
>
|