dissect.target.plugins.os.unix.locale¶
Module Contents¶
Classes¶
Unix locale plugin. |
Functions¶
Return timezone name for the given zoneinfo path. |
Attributes¶
- dissect.target.plugins.os.unix.locale.UnixKeyboardRecord¶
- dissect.target.plugins.os.unix.locale.timezone_from_path(path: pathlib.Path | str) str¶
Return timezone name for the given zoneinfo path.
/usr/share/zoneinfo/Europe/Amsterdam -> Europe/Amsterdam /usr/share/zoneinfo/UTC -> UTC Etc/UTC -> UTC
- class dissect.target.plugins.os.unix.locale.UnixLocalePlugin(target: dissect.target.target.Target)¶
Bases:
dissect.target.plugins.os.default.locale.LocalePluginUnix locale plugin.
- check_compatible() None¶
Perform a compatibility check with the target.
This function should return
Noneif the plugin is compatible with the current target (self.target). For example, check if a certain file exists. Otherwise it should raise anUnsupportedPluginError.- Raises:
UnsupportedPluginError – If the plugin could not be loaded.
- timezone() str | None¶
Get the timezone of the system.
- language() list[str]¶
Get the configured locale(s) of the system.
- keyboard() collections.abc.Iterator[UnixKeyboardRecord]¶
Get the keyboard layout(s) of the system.