Use old username to always work.
This commit is contained in:
parent
2ce2c2bb8c
commit
d7d87a6902
|
@ -32,7 +32,9 @@ logger = logging.getLogger('mugshot')
|
||||||
|
|
||||||
from mugshot_lib import Window
|
from mugshot_lib import Window
|
||||||
|
|
||||||
username = os.getlogin()
|
username = os.getenv('USER')
|
||||||
|
if not username:
|
||||||
|
username = os.getenv('USERNAME')
|
||||||
home = os.path.expanduser('~')
|
home = os.path.expanduser('~')
|
||||||
libreoffice_prefs = os.path.join(home, '.config', 'libreoffice', '4', 'user',
|
libreoffice_prefs = os.path.join(home, '.config', 'libreoffice', '4', 'user',
|
||||||
'registrymodifications.xcu')
|
'registrymodifications.xcu')
|
||||||
|
|
Loading…
Reference in New Issue