remoting/host/linux/configure_url_forwarder.py
def check_default_browser_is_url_forwarder(desktop_env: str) -> None:
  """Checks if the default browser is set to the remote URL forwarder on the
  given desktop environment. Exits with 1 if it's not the case."""

  if (desktop_env != 'XFCE' and
      get_default_browser(desktop_env) == XFCE4_WEB_BROWSER_DESKTOP_ENTRY):
    print('Default browser for', desktop_env, 'is',
          XFCE4_WEB_BROWSER_DESKTOP_ENTRY,
          '. Checking default browser for XFCE instead...')
    check_default_browser_is_url_forwarder('XFCE')
    return
  if get_default_browser(desktop_env) != URL_FORWARDER_DESKTOP_ENTRY:
    print('Default browser for', desktop_env, 'is not',
          URL_FORWARDER_DESKTOP_ENTRY)
    sys.exit(1)
Checks if the default browser is set to the remote URL forwarder on the
  given desktop environment. Exits with 1 if it's not the case.
Checks if the default browser is set to the remote URL forwarder on the
given desktop environment. Exits with 1 if it's not the case.
Checks if the default browser is set to the remote URL forwarder on the given desktop environment . Exits with 1 if it ' s not the case .
def check_default_browser_is_url_forwarder(desktop_env: str) -> None:
  if (desktop_env != 'XFCE' and
      get_default_browser(desktop_env) == XFCE4_WEB_BROWSER_DESKTOP_ENTRY):
    print('Default browser for', desktop_env, 'is',
          XFCE4_WEB_BROWSER_DESKTOP_ENTRY,
          '. Checking default browser for XFCE instead...')
    check_default_browser_is_url_forwarder('XFCE')
    return
  if get_default_browser(desktop_env) != URL_FORWARDER_DESKTOP_ENTRY:
    print('Default browser for', desktop_env, 'is not',
          URL_FORWARDER_DESKTOP_ENTRY)
    sys.exit(1)
def check_default_browser_is_url_forwarder ( desktop_env : str ) -> None : if ( desktop_env != 'XFCE' and get_default_browser ( desktop_env ) == XFCE4_WEB_BROWSER_DESKTOP_ENTRY ) : print ( 'Default browser for' , desktop_env , 'is' , XFCE4_WEB_BROWSER_DESKTOP_ENTRY , '. Checking default browser for XFCE instead...' ) check_default_browser_is_url_forwarder ( 'XFCE' ) return if get_default_browser ( desktop_env ) != URL_FORWARDER_DESKTOP_ENTRY : print ( 'Default browser for' , desktop_env , 'is not' , URL_FORWARDER_DESKTOP_ENTRY ) sys . exit ( 1 )
Checks if the default browser is set to the remote URL forwarder on the
given desktop environment.
Checks if the default browser is set to the remote URL forwarder on the given desktop environment .
"""Checks if the default browser is set to the remote URL forwarder on the
  given desktop environment. Exits with 1 if it's not the case."""
desktop_env
str