original_docstring: Get the temp folder on a Linux system.
      This method may also be used by unknown operating systems.
      
docstring: Get the temp folder on a Linux system.
  This method may also be used by unknown operating systems.
docstring_tokens: Get the temp folder on a Linux system . This method may also be used by unknown operating systems .
code: def _get_temp_folder_linux():
      """Get the temp folder on a Linux system.
      This method may also be used by unknown operating systems.
      """
      # On Linux, we prefer to use "$XDG_RUNTIME_DIR", since it is dedicated to
      # this kind of purpose. If it's not available, Voicemacs will create a new
      # temporary directory in the user's home dir.
      if "XDG_RUNTIME_DIR" in os.environ:
          return os.environ["XDG_RUNTIME_DIR"]
      elif "HOME" in os.environ:
          return os.path.join(os.environ["HOME"], "tmp")
      else:
          raise IOError(
              "Neither $XDG_RUNTIME_DIR or $HOME could be read. Cannot "
              "automatically query server information on this system."
          )
code_tokens: def _get_temp_folder_linux ( ) : if "XDG_RUNTIME_DIR" in os . environ : return os . environ [ "XDG_RUNTIME_DIR" ] elif "HOME" in os . environ : return os . path . join ( os . environ [ "HOME" ] , "tmp" ) else : raise IOError ( "Neither $XDG_RUNTIME_DIR or $HOME could be read. Cannot " "automatically query server information on this system." )
short_docstring: Get the temp folder on a Linux system.
short_docstring_tokens: Get the temp folder on a Linux system .
comment: """Get the temp folder on a Linux system.
      This method may also be used by unknown operating systems.
      """$SEP$# On Linux, we prefer to use "$XDG_RUNTIME_DIR", since it is dedicated to$SEP$# this kind of purpose. If it's not available, Voicemacs will create a new$SEP$# temporary directory in the user's home dir.