2007-07-08 Alex Roitman <shura@gramps-project.org>
* src/GrampsDb/_GrampsDBDir.py (write_lock_file): Work around os.getlogin() problem on some terminals. svn: r8706
This commit is contained in:
parent
ddb68c9398
commit
1c550c4c60
@ -1,3 +1,7 @@
|
||||
2007-07-08 Alex Roitman <shura@gramps-project.org>
|
||||
* src/GrampsDb/_GrampsDBDir.py (write_lock_file): Work around
|
||||
os.getlogin() problem on some terminals.
|
||||
|
||||
2007-07-07 Don Allingham <don@gramps-project.org>
|
||||
* src/PageView.py (ListView.column_clicked): set the search column for list
|
||||
views to be the sort column
|
||||
|
4
NEWS
4
NEWS
@ -5,8 +5,8 @@ Version 3.0.0 -- the "" release
|
||||
* Multiple notes
|
||||
* LDS temple definitions moved to supporting file
|
||||
* New database format, using hidden directory, old grdb format deprecated
|
||||
* New database manager, allowing create, deletion, renaming, repair and revison
|
||||
control
|
||||
* New database manager, allowing create, deletion, renaming, repair and
|
||||
revison control
|
||||
|
||||
Version 2.2.6 -- the "Summarize Proust Competition" release
|
||||
* Fix report option saving
|
||||
|
@ -1741,7 +1741,11 @@ def write_lock_file(name):
|
||||
else:
|
||||
import pwd
|
||||
host = os.uname()[1]
|
||||
user = os.getlogin()
|
||||
# An ugly workaround for os.getlogin() issue with Konsole
|
||||
try:
|
||||
user = os.getlogin()
|
||||
except:
|
||||
user = os.environ.get('USER')
|
||||
text = "%s@%s" % (user, host)
|
||||
f.write(_("Locked by %s") % text)
|
||||
f.close()
|
||||
|
Loading…
Reference in New Issue
Block a user