From 211471aa7ce0577fb3591f28e8c2a337f3abed26 Mon Sep 17 00:00:00 2001 From: oakes Date: Thu, 30 Jan 2014 23:15:53 -0500 Subject: [PATCH] Allow running desktop version portably --- desktop/src/nightweb_desktop/core.clj | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/desktop/src/nightweb_desktop/core.clj b/desktop/src/nightweb_desktop/core.clj index b5c169c..8ccf1c2 100644 --- a/desktop/src/nightweb_desktop/core.clj +++ b/desktop/src/nightweb_desktop/core.clj @@ -25,7 +25,9 @@ (defn -main [& args] - (router/start-router! (get-data-dir)) + (router/start-router! (if (contains? (set args) "--portable") + "nightweb" + (get-data-dir))) (server/start-server!) (when-not (contains? (set args) "-nw") (window/start-window!)))