Tooling

data object Tooling

This singleton class provides some easy tooling methods, useful for most applications.

Functions

Link copied to clipboard

Apply title to the Application, this fixes appearance on some targets.

Link copied to clipboard
fun Tooling.findSystemRoots(): Set<<Error class: unknown class>>

Provides all root directories available in the system.

Link copied to clipboard
fun Tooling.getApplicationWriteableRootFolder(appName: String, appVersion: String? = null, appAuthor: String? = null, multiPath: Boolean = false): File?

Get a read-write able folder for (a compose) application to store user unrelated data.

Link copied to clipboard
fun Tooling.getRWSiteDataFile(child: String?, appName: String, appVersion: String? = null, appAuthor: String? = null, multiPath: Boolean = false, createIfNotExists: Boolean = false): File

Get a read-write able file in the application site data directory (platform dependent).

Link copied to clipboard
fun Tooling.getRWUserConfigFile(child: String?, appName: String, appVersion: String? = null, appAuthor: String? = null, roaming: Boolean = false, createIfNotExists: Boolean = false): File

Get a read-write able file in the application user config directory (platform dependent).

Link copied to clipboard
fun Tooling.getRWUserDataFile(child: String?, appName: String, appVersion: String? = null, appAuthor: String? = null, roaming: Boolean = false, createIfNotExists: Boolean = false): File

Get a read-write able file in the application user data directory (platform dependent).

Link copied to clipboard
fun Tooling.homeDirectory(): <Error class: unknown class>?

Get the home directory of the user. Falls back to HOME system environment variable if JVM property user.home could not be found.