diff --git a/R/shiny-ui-top.R b/R/shiny-ui-top.R
index 4502d202509bcd31b50423f4e1d11d7da7ab2ebc..4e7554b18d0742d8ba3c63d4528b6d0bd27356ba 100644
--- a/R/shiny-ui-top.R
+++ b/R/shiny-ui-top.R
@@ -102,6 +102,6 @@ launch <- function(GUI=T,fn_conf="",wd=getwd(),...) {
         if (nchar(fn_conf)==0) {
             fn_conf <- commandArgs(trailingOnly=T)[[1]]
         }
-        run(fn_conf)
+        return(run(fn_conf))
     }
 }