[polari/wip/dmoelgaard/initial-setup: 10/10] app: Add a way to force running initial setup
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari/wip/dmoelgaard/initial-setup: 10/10] app: Add a way to force running initial setup
- Date: Fri, 11 Aug 2017 00:01:37 +0000 (UTC)
commit 1fca3d815177e0cf26728b172b7fbd8d744bfe25
Author: Florian Müllner <fmuellner gnome org>
Date: Fri Aug 11 00:20:47 2017 +0200
app: Add a way to force running initial setup
We only run initial setup once, and only for new users that haven't set
up any channels before. As recreating those conditions for testing is
quite tedious, allow to force running setup via an environment variable.
https://bugzilla.gnome.org/show_bug.cgi?id=772458
src/application.js | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/application.js b/src/application.js
index e2bc207..354db90 100644
--- a/src/application.js
+++ b/src/application.js
@@ -430,6 +430,11 @@ var Application = new Lang.Class({
},
_needsInitialSetup: function() {
+ if (GLib.getenv('POLARI_FORCE_INITIAL_SETUP')) {
+ GLib.unsetenv('POLARI_FORCE_INITIAL_SETUP');
+ return true;
+ }
+
let f = Gio.File.new_for_path(GLib.get_user_cache_dir() +
'/polari/initial-setup-completed');
try {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]