• Home
  • Raw
  • Download

Lines Matching +full:environment +full:- +full:file

2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
9 // This file contains utilities found across free desktop environments.
21 class Environment; variable
69 // The XDG config directory environment variable.
72 // The XDG current desktop environment variable.
75 // The XDG session type environment variable.
78 // The XDG activation token environment variable.
86 // |env_name| is the name of an environment variable that we want to use to get
90 BASE_EXPORT FilePath GetXDGDirectory(Environment* env,
94 // Wrapper around xdg_user_dir_lookup() from src/base/third_party/xdg-user-dirs
100 // Get the path to write user-specific application data files to, as specified
102 // http://standards.freedesktop.org/basedir-spec/latest/
103 BASE_EXPORT FilePath GetXDGDataWriteLocation(Environment* env);
107 // http://standards.freedesktop.org/basedir-spec/latest/
108 // Called on the FILE thread.
109 BASE_EXPORT std::vector<FilePath> GetXDGDataSearchLocations(Environment* env);
112 // of which desktop environment we're using. We use this to know when
113 // to attempt to use preferences from the desktop environment --
115 BASE_EXPORT DesktopEnvironment GetDesktopEnvironment(Environment* env);
117 // Return a string representation of the given desktop environment.
121 BASE_EXPORT const char* GetDesktopEnvironmentName(Environment* env);
125 BASE_EXPORT SessionType GetSessionType(Environment& env);
127 // Sets the global activation token from the environment and returns it if it
128 // exists, and removes it from the environment to prevent it from leaking into
131 Environment& env);
145 // Tries to create an xdg-activation token and invokes the `callback` with
150 // Returns a request path as specified in v0.9 of xdg-desktop-portal:
151 // https://flatpak.github.io/xdg-desktop-portal/docs/doc-org.freedesktop.portal.Request.html
156 // Returns a session path as specified in v0.9 of xdg-desktop-portal:
157 // https://flatpak.github.io/xdg-desktop-portal/docs/doc-org.freedesktop.portal.Session.html