pragma Singleton pragma ComponentBehavior: Bound import Qt.labs.platform // StandardPaths import qs.common.functions import QtQuick import Quickshell Singleton { // XDG Directories prefixed with file:// readonly property string config: StandardPaths.standardLocations(StandardPaths.ConfigLocation)[0] readonly property string state: StandardPaths.standardLocations(StandardPaths.StateLocation)[0] readonly property string cache: StandardPaths.standardLocations(StandardPaths.CacheLocation)[0] readonly property string pictures: StandardPaths.standardLocations(StandardPaths.PicturesLocation)[0] readonly property string downloads: StandardPaths.standardLocations(StandardPaths.DownloadLocation)[0] property string shellConfig: FileUtils.trimFileProtocol(`${Directories.config}/hydro-os`) property string shellConfigName: "config.json" property string shellConfigPath: `${Directories.shellConfig}/${Directories.shellConfigName}` property string shellColorConfigName: "color.json" property string shellColorConfigPath: `${Directories.shellConfig}/${Directories.shellColorConfigName}` property string coverArt: FileUtils.trimFileProtocol(`${Directories.cache}/media/coverart`) Component.onCompleted: { Quickshell.execDetached(["mkdir", "-p", `${shellConfig}`]) Quickshell.execDetached(["mkdir", "-c", `rm -rf '${coverArt}'; mkdir -p '${coverArt}'`]) } }