[gnome-initial-setup] Revert "Remove the trigger for the first-login mode"



commit b399ab67accdfef8ae110d460d765ff486245752
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Sep 15 07:53:18 2014 -0400

    Revert "Remove the trigger for the first-login mode"
    
    This reverts commit f2bc7d626e14f0c75b554a1269fca3b61a799073.
    
    Fedora is one of the main users of gnome-initial-setup, and its
    installer still supports creating the user ahead of time. As long
    as thats the case, removing this functionality causes a regression.
    
    This went unnoticed in 3.12 since there was no Fedora release with
    it.

 .gitignore                                         |    1 +
 HACKING                                            |    6 ++++++
 data/Makefile.am                                   |    3 +++
 data/gnome-initial-setup-first-login.desktop.in.in |   15 +++++++++++++++
 po/POTFILES.in                                     |    1 +
 po/POTFILES.skip                                   |    1 +
 6 files changed, 27 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index ccbc106..eb32d43 100644
--- a/.gitignore
+++ b/.gitignore
@@ -64,6 +64,7 @@ gnome-initial-setup/pages/account/account-resources.[ch]
 gnome-initial-setup/pages/account/um-realm-generated.[ch]
 gnome-initial-setup/pages/summary/summary-resources.[ch]
 
+gnome-initial-setup-first-login.desktop
 gnome-initial-setup.desktop
 gnome-initial-setup-copy-worker.desktop
 gnome-welcome-tour.desktop
diff --git a/HACKING b/HACKING
index fe5edd7..eb752e1 100644
--- a/HACKING
+++ b/HACKING
@@ -58,5 +58,11 @@ configuration to provide suitable permissions for the gnome-initial-setup
 user. The rules file is removed again together with the
 gnome-initial-setup user account.
 
+gnome-initial-setup also has a session mode which activates gnome-initial-setup when a user first logs in. 
The gnome-initial-setup-first-login.desktop in the
+xdg autostart directory utilises gnome-session to check if the user has a
+gnome-initial-setup-done file in their XDG_CONFIG_DIR if they don't
+gnome-initial-setup will launch with pages that are suitable for a
+non-privileged user and on exiting will write the done file.
+
 TODO
 ====
diff --git a/data/Makefile.am b/data/Makefile.am
index 60dea25..f9a9e12 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -32,6 +32,7 @@ EXTRA_DIST =                                          \
        gnome-welcome-tour                              \
        setup-shell.desktop                             \
        gnome-welcome-tour.desktop.in.in                \
+       gnome-initial-setup-first-login.desktop.in.in   \
        gnome-initial-setup.desktop.in.in               \
        gnome-initial-setup-copy-worker.desktop.in.in   \
        gnome-initial-setup.session                     \
@@ -43,6 +44,7 @@ CLEANFILES =                                          \
        gnome-initial-setup.desktop                     \
        gnome-initial-setup-copy-worker.desktop.in      \
        gnome-initial-setup-copy-worker.desktop         \
+       gnome-initial-setup-first-login.desktop         \
        gnome-welcome-tour.desktop.in                   \
        gnome-welcome-tour.desktop                      \
        $(NULL)
@@ -51,6 +53,7 @@ autostartdir = $(sysconfdir)/xdg/autostart
 autostart_DATA =                                       \
        gnome-welcome-tour.desktop                      \
        gnome-initial-setup-copy-worker.desktop         \
+       gnome-initial-setup-first-login.desktop         \
        $(NULL)
 
 libexec_SCRIPTS =                                              \
diff --git a/data/gnome-initial-setup-first-login.desktop.in.in 
b/data/gnome-initial-setup-first-login.desktop.in.in
new file mode 100644
index 0000000..0c0d55d
--- /dev/null
+++ b/data/gnome-initial-setup-first-login.desktop.in.in
@@ -0,0 +1,15 @@
+[Desktop Entry]
+_Name=Initial Setup
+Icon=preferences-system
+Exec= LIBEXECDIR@/gnome-initial-setup
+Terminal=false
+Type=Application
+StartupNotify=true
+Categories=GNOME;GTK;System;
+OnlyShowIn=GNOME;
+NoDisplay=true
+AutostartCondition=unless-exists gnome-initial-setup-done
+X-GNOME-Bugzilla-Bugzilla=GNOME
+X-GNOME-Bugzilla-Product=gnome-initial-setup
+X-GNOME-Bugzilla-Component=general
+X-GNOME-Bugzilla-Version=unknown
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 3f2abb5..6dbb6a1 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -1,4 +1,5 @@
 data/gnome-initial-setup.desktop.in.in
+data/gnome-initial-setup-first-login.desktop.in.in
 gnome-initial-setup/gis-assistant.c
 gnome-initial-setup/gnome-initial-setup.c
 gnome-initial-setup/pages/account/gis-account-page.c
diff --git a/po/POTFILES.skip b/po/POTFILES.skip
index 59983c1..f975804 100644
--- a/po/POTFILES.skip
+++ b/po/POTFILES.skip
@@ -1 +1,2 @@
 data/gnome-initial-setup.desktop.in
+data/gnome-initial-setup-first-login.desktop.in


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]