Functions | |
| bool | user_is_admin () |
| int | get_user_id () |
| int | get_user_id_effective () |
| string? | get_username_from_uid (int user_id) |
| double | get_system_uptime_seconds () |
| static bool | xdg_open (string file) |
| bool | exo_open_folder (string dir_path, bool xdg_open_try_first=true) |
| bool | using_efi_boot () |
| GLib.Timer | timer_start () |
| ulong | timer_elapsed (GLib.Timer timer, bool stop=true) |
| void | sleep (int milliseconds) |
| string | timer_elapsed_string (GLib.Timer timer, bool stop=true) |
| void | set_numeric_locale (string type) |
Variables | |
| int | euid = -1 |
| bool TeeJee.System.exo_open_folder | ( | string | dir_path, |
| bool | xdg_open_try_first = true ) |
Definition at line 100 of file TeeJee.System.vala.
References TeeJee.ProcessHelper.cmd_exists(), TeeJee.FileSystem.escape_single_quote(), TeeJee.ProcessHelper.exec_script_async(), and exo_open_folder().
Referenced by exo_open_folder().
| double TeeJee.System.get_system_uptime_seconds | ( | ) |
Definition at line 79 of file TeeJee.System.vala.
References TeeJee.FileSystem.file_read(), and get_system_uptime_seconds().
Referenced by Main.create_snapshot(), Main.create_snapshot_for_tag(), get_system_uptime_seconds(), and SnapshotRepo.load_snapshots().
| int TeeJee.System.get_user_id | ( | ) |
Definition at line 39 of file TeeJee.System.vala.
References get_user_id(), and get_user_id_effective().
Referenced by get_user_id().
| int TeeJee.System.get_user_id_effective | ( | ) |
Definition at line 59 of file TeeJee.System.vala.
References euid, and get_user_id_effective().
Referenced by get_user_id(), get_user_id_effective(), and user_is_admin().
| string? TeeJee.System.get_username_from_uid | ( | int | user_id | ) |
Definition at line 68 of file TeeJee.System.vala.
References get_username_from_uid(), and TeeJee.Logging.log_error().
Referenced by get_username_from_uid().
| void TeeJee.System.set_numeric_locale | ( | string | type | ) |
Definition at line 186 of file TeeJee.System.vala.
References TeeJee.Misc.set_numeric_locale().
| void TeeJee.System.sleep | ( | int | milliseconds | ) |
Definition at line 172 of file TeeJee.System.vala.
References sleep().
Referenced by Main.create_snapshot_with_rsync(), DeleteBox.delete_snapshots(), TerminalWindow.execute_script(), Main.get_space_needed_for_rsync_snapshot(), RsyncLogBox.parse_log_file(), Subvolume.remove(), Snapshot.remove_rsync(), RestoreBox.restore(), Main.restore_other_gui(), sleep(), BackupBox.take_snapshot(), and TeeJee.GtkHelper.wait_and_close_window().
| ulong TeeJee.System.timer_elapsed | ( | GLib.Timer | timer, |
| bool | stop = true ) |
Definition at line 162 of file TeeJee.System.vala.
References timer_elapsed().
Referenced by timer_elapsed().
| string TeeJee.System.timer_elapsed_string | ( | GLib.Timer | timer, |
| bool | stop = true ) |
Definition at line 176 of file TeeJee.System.vala.
References timer_elapsed_string().
Referenced by timer_elapsed_string().
| GLib.Timer TeeJee.System.timer_start | ( | ) |
Definition at line 156 of file TeeJee.System.vala.
References timer_start().
Referenced by timer_start().
| bool TeeJee.System.user_is_admin | ( | ) |
Definition at line 34 of file TeeJee.System.vala.
References get_user_id_effective(), and user_is_admin().
Referenced by AppConsole.check_if_admin(), AppGtk.check_if_admin(), and user_is_admin().
| bool TeeJee.System.using_efi_boot | ( | ) |
Definition at line 146 of file TeeJee.System.vala.
References TeeJee.FileSystem.dir_exists(), and using_efi_boot().
Referenced by using_efi_boot().
|
static |
Definition at line 90 of file TeeJee.System.vala.
References TeeJee.FileSystem.escape_single_quote(), TeeJee.ProcessHelper.exec_user_async(), and xdg_open().
Referenced by xdg_open().
|
private |
Definition at line 58 of file TeeJee.System.vala.
Referenced by get_user_id_effective().