title: Chrome browser does not display page unless already open in Shiny
body: <p>I am able to launch the shiny app when chrome browser is already open in my desktop (linux).  However, with my browser closed, and I launch the shiny app, it just shows a blank page and "waiting 127.0.0.1 ..." in lower status bar.  In other words, it launches chrome but does not show the shiny app content.  Here is my code:</p>
  
  <pre><code>library(shiny)
  library(shinyBS)
  
  launch.browser = function(appUrl, browser.path='/usr/bin/chromium-browser') {
    system(sprintf('"%s" --disable-gpu --app="data:text/html,&lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;Configuration&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;script&gt;window.resizeTo(800,500);window.location=\'%s\';&lt;/script&gt;
  &lt;/body&gt;&lt;/html&gt;"', browser.path, appUrl))
  }
  
  shinyApp(
  
    ui = fluidPage(
      fluidRow(
        br(),
        wellPanel(
          fluidRow(
            h4('User Information')
          ),
          fluidRow(
            column(4,
              textInput('Name', 'Full Name', value = "")
            ),
            column(4,
              numericInput('accNum', 'Account Number', value = "")
            ),
            column(4,
              textInput('token', 'Account Token', value = "")
            )
          )
        )
      ),
  
      fluidRow(
        column(12,
           actionButton('save', 'Save')
        )
      ),
      bsTooltip(id = "accNum", title = "Enter Lending Club account number", 
                placement = "bottom", trigger = "hover")
      # tags$head(tags$style(type="text/css", "#accNum {width: 100px}"))
    ), 
  
    server = function(input, output, session) {
      session$onSessionEnded(function() {
        stopApp()
      })
      observe({
        if (input$save == 0)
          return()
        isolate({
          j&lt;&lt;-input$accNum
        })
      })
  
    },
    options = list(launch.browser=launch.browser)
  )
  </code></pre>
  
  <p>Thanks for any help</p>
  
  <p><strong>* Edit 1 *</strong></p>
  
  <p>I have verified that the browser starts fine and goes to a specified URL outside of shiny:</p>
  
  <pre><code>system('/usr/bin/chromium-browser --disable-gpu --app="data:text/html,&lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;Configuration&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;script&gt;window.resizeTo(800,500);window.location=\'http://www.facebook.com\';&lt;/script&gt;
  &lt;/body&gt;&lt;/html&gt;"')
  </code></pre>
  
  <p>The above also works inside shiny using the location facebook.com.  However, when I change it to appUrl parameter it never connects.  I also verified that the source of the page is pointing to the correct 127.0.0.1:3189, however, it looks like shiny is not responding for some reason...</p>