Paths
Object Hierarchy:
Description:
[ Version ( deprecated = true , deprecated_since = "5.5.0" , replacement = "GLib.Environment" ) ]
public class Paths : Object
Content:
Properties:
- public File data_folder { get; protected set; }
Path passed in to initialize method; should be Build.PKGDATADIR.
- public File home_folder { get; protected set; }
User's home folder - $HOME
- public File user_cache_folder { get; protected set; }
defaults to xdg_cache_home_folder/app_name
- public File user_config_folder { get; protected set; }
defaults to xdg_config_home_folder/app_name
- public File user_data_folder { get; protected set; }
defaults to xdg_data_home_folder/app_name
- public File xdg_cache_home_folder { get; protected set; }
$XDG_CACHE_HOME - defaults to $HOME/.cache
- public File xdg_config_home_folder { get; protected set; }
$XDG_CONFIG_HOME - defaults to $HOME/.config
- public List<File> xdg_data_dir_folders { get; protected owned set; }
$XDG_DATA_DIRS - defaults to /usr/local/share/:/usr/share/
- public File xdg_data_home_folder { get; protected set; }
$XDG_DATA_HOME - defaults to $HOME/.local/share
Static methods:
- public static bool ensure_directory_exists (File dir)
Ensure the directory exists, by creating it if it does not.
- public static void initialize (string app_name, string data_folder_path)
Initialize all the paths using the supplied app name and path to the
app's data folder.
Creation methods:
Inherited Members:
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref