Added warning if running as root.
svn: r702
This commit is contained in:
parent
9a0c34dfb5
commit
302745652c
@ -149,12 +149,12 @@ class SelectChild:
|
||||
if dday.getYearValid():
|
||||
if pbday.getYearValid():
|
||||
# reject if childs birth date > parents deathday + 3
|
||||
if pdday.getLowYear() > dday.getHighYear()+3:
|
||||
if pbday.getLowYear() > dday.getHighYear()+3:
|
||||
continue
|
||||
|
||||
if pdday.getYearValid():
|
||||
# reject if childs death date > parents deathday + 150
|
||||
if pbday.getLowYear() > dday.getHighYear() + 150:
|
||||
if pdday.getLowYear() > dday.getHighYear() + 150:
|
||||
continue
|
||||
|
||||
person_list.append(person)
|
||||
|
@ -6348,6 +6348,7 @@ Unknown
|
||||
<widget>
|
||||
<class>GtkButton</class>
|
||||
<name>button98</name>
|
||||
<tooltip>Creates the new child and adds him or her as a child of the family</tooltip>
|
||||
<can_default>True</can_default>
|
||||
<has_default>True</has_default>
|
||||
<can_focus>True</can_focus>
|
||||
@ -6363,6 +6364,7 @@ Unknown
|
||||
<widget>
|
||||
<class>GtkButton</class>
|
||||
<name>button99</name>
|
||||
<tooltip>Adds the new person as a child of the family and displays the standard person dialog to allow for more data to be entered</tooltip>
|
||||
<can_default>True</can_default>
|
||||
<can_focus>True</can_focus>
|
||||
<signal>
|
||||
@ -6371,7 +6373,7 @@ Unknown
|
||||
<object>addChild</object>
|
||||
<last_modification_time>Tue, 15 Jan 2002 14:31:28 GMT</last_modification_time>
|
||||
</signal>
|
||||
<label>Edit</label>
|
||||
<label>Add Data</label>
|
||||
<stock_pixmap>GNOME_STOCK_PIXMAP_PROPERTIES</stock_pixmap>
|
||||
</widget>
|
||||
|
||||
|
@ -1996,6 +1996,11 @@ def main(arg):
|
||||
global sort_column, sort_direct
|
||||
|
||||
gtk.rc_parse(const.gtkrcFile)
|
||||
|
||||
if os.getuid() == 0:
|
||||
msg = _("You are running GRAMPS as the 'root' user.\nThis account is not meant for normal application use.")
|
||||
gnome.ui.GnomeWarningDialog(msg)
|
||||
|
||||
database = RelDataBase()
|
||||
|
||||
Plugins.load_plugins(const.pluginsDir)
|
||||
|
Loading…
Reference in New Issue
Block a user