Re: [Monkeymessenger-list] SVN rev 189 bug
Status: Alpha
Brought to you by:
thiago_sayao
|
From: Thiago M. <thi...@gm...> - 2007-05-18 21:35:14
|
I've looked on how banshee does it. It has a definition file, like
Definition.cs.orig that has the variables needed. So when configure runs
it reads it and replaces the variables resulting on Definition.cs which
is used with the compilation. Seems very easy to do :)
For now only myself has access to the svn, but it will change as people
send me nice patches :)
Thanks
On Fri, 2007-05-18 at 14:59 +0200, Mark Baas wrote:
> 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... 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
> >
> -------------------------------------------------------------------------
> 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
|