logic fix
This commit is contained in:
parent
5f0b36004d
commit
c28690de54
|
@ -33,10 +33,11 @@ def get_default_font():
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import gconf
|
import gconf
|
||||||
|
# in try because daemon may not be there
|
||||||
|
client = gconf.client_get_default()
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
client = gconf.client_get_default()
|
|
||||||
return client.get_string('/desktop/gnome/interface/font_name')
|
return client.get_string('/desktop/gnome/interface/font_name')
|
||||||
|
|
||||||
# try to get xfce default font
|
# try to get xfce default font
|
||||||
|
|
Loading…
Reference in New Issue