> In contrary, my resources are limited at the moment. 

the quick fix is below.

> Setting the user name to anonymous may be a good solution for the time being
> (at least for 1.5rc2) provided that we can change back to the old settings at
> no cost later.

afaik the current situation is : 

1. user can change from anonymous anytime if he decide (and find it:) in 
preferences. 

2. patched functions are used only when no ~/.lyx/preferences is found - so
   this patch does not change previously saved settings. likewise once anonymous
   is saved in preferences, just starting new release of lyx wont automaticaly 
change 
   from anonymous, so in this sense it is not revertible unless user 
voluntarily 
   change it.


pavel
Index: src/support/userinfo.cpp
===================================================================
--- src/support/userinfo.cpp    (revision 18822)
+++ src/support/userinfo.cpp    (working copy)
@@ -36,6 +36,11 @@
 
 docstring const user_name()
 {
+       //FIXME: quick fix wrt bug 3764; only Anonymous is detected now.
+       //The code after should be used only after user approval.
+       return from_local8bit("Anonymous");
+       
+       
 #if defined (_WIN32)
 
        char name[UNLEN + 1];
@@ -57,6 +62,11 @@
 
 docstring const user_email()
 {
+       //FIXME: quick fix wrt bug 3764; only Anonymous is detected now.
+       //The code after should be used only after user approval.
+       return docstring();
+
+       
        string email = getEnv("EMAIL_ADDRESS");
        if (email.empty())
                email = getEnv("EMAIL");

Reply via email to