Paths
Object Hierarchy:
Description:
public class Paths : Object
Content:
Properties:
- public
File
HomeFolder { protected set; get; }
User's home folder - $HOME
- public
File
DataFolder { protected set; get; }
Path passed in to initialize method should be Build.PKGDATADIR
- public
File
ThemeFolder { protected set; get; }
DataFolder/themes
- public
File
ConfigHomeFolder { protected set; get; }
HomeFolder/.config
- public
File
DataHomeFolder { protected set; get; }
HomeFolder/.local/share
- public
File
CacheHomeFolder { protected set; get; }
HomeFolder/.cache
- public
ArrayList
<File
> DataDirFolders { protected set; get; }
/usr/local/share/:/usr/share/
- public
File
AppConfigFolder { protected set; get; }
defaults to ConfigHomeFolder/app_name
- public
File
AppDataFolder { protected set; get; }
defaults to DataHomeFolder/app_name
- public
File
AppThemeFolder { protected set; get; }
defaults to AppDataFolder/themes
- public
File
AppCacheFolder { protected set; get; }
defaults to CacheHomeFolder/app_name
Static methods:
- public static void initialize (
string
app_name, string
data_folder)
Initialize the class, creating the GLib.File
instances
for all common paths. Also ensure that any writable directory exists.
- public static
bool
ensure_directory_exists (File
dir)
Creates the directory if it does not already exist
Inherited Members:
All known members inherited from class GLib.Object
- @new
- newv
- new_valist
- get_type
- get_class
- @ref
- unref
- ref_sink
- weak_ref
- weak_unref
- add_weak_pointer
- remove_weak_pointer
- @get
- @set
- get_property
- set_property
- get_data
- set_data
- set_data_full
- steal_data
- get_qdata
- set_qdata
- set_qdata_full
- steal_qdata
- freeze_notify
- thaw_notify
- dispose
- constructed
- notify_property
- connect
- disconnect
- add_toggle_ref
- remove_toggle_ref
- bind_property
- notify
- ref_count