On Thu, 2003-10-09 at 22:05, Felix Kühling wrote:
>
> earlier today I finally merged the config-0-0-1-branch into the trunk.
Congratulations for the good work!
> This means that most environment variables stop working [...]
How hard do you think it would be to allow options to be overridden by
environment variables for debugging, along the lines of
tcl_mode=0 torcs
?
> A configuration GUI is available at my homepage:
> http://fxk.de.vu/projects_cur_en.html.
Attached is a small patch for driconf 0.0.9:
* the python gtk module in current Debian packages defaults to
GTK2; this fix might be Debian specific though
* get the language from LC_MESSAGES
Also, when I try to rename an application, the only thing that happens
is that this error gets printed:
Traceback (most recent call last):
File "/usr/lib/python2.3/site-packages/gtk-1.2/gtk.py", line 2000, in
__call__
return self.cb(_obj2inst(widget))
File "/home/michdaen/src/dri-cvs/driconf-0.0.9/driconf.py", line 841,
in renameApp
app.name, app)
NameError: global name 'app' is not defined
> 2. I'd like to move the project homepage for driconf (the configuration
> GUI) to a more public place, either dri.sf.net or dri.freedesktop.org.
> It would be easy to add a DriConf page to the Wiki on dri.sf.net.
I see you've already added one, looks good.
> What about importing it into DRI CVS?
Sounds like a good idea to me.
--
Earthling Michel Dänzer \ Debian (powerpc), XFree86 and DRI developer
Software libre enthusiast \ http://svcs.affero.net/rm.php?r=daenzer
diff -up -r driconf-0.0.9.orig/driconf.py driconf-0.0.9/driconf.py
--- driconf-0.0.9.orig/driconf.py 2003-10-03 14:14:26.000000000 +0200
+++ driconf-0.0.9/driconf.py 2003-10-11 01:32:27.000000000 +0200
@@ -21,6 +21,8 @@
import os
import locale
import dri
+import pygtk
+pygtk.require('1.2');
from gtk import *
from driconf_xpm import *
@@ -1064,7 +1066,7 @@ def main():
# initialize locale
global lang, encoding
locale.setlocale(locale.LC_ALL, '')
- lang,encoding = locale.getlocale()
+ lang,encoding = locale.getlocale(locale.LC_MESSAGES)
if lang:
underscore = lang.find ('_')
if underscore != -1: