mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-06-25 15:44:42 -04:00
started thing
This commit is contained in:
parent
aff8b6a654
commit
89c125a4a9
2 changed files with 28 additions and 0 deletions
27
Scripts/XDGDataPaths.gd
Normal file
27
Scripts/XDGDataPaths.gd
Normal file
|
@ -0,0 +1,27 @@
|
|||
extends Node
|
||||
|
||||
var xdg_data_home : String
|
||||
var xdg_data_dirs : Array
|
||||
|
||||
# Default location for xdg_data_home relative to $HOME
|
||||
const default_xdg_data_home_rel := ".local/share"
|
||||
const default_xdg_data_dirs := ["/usr/local/share", "/usr/share"]
|
||||
|
||||
const config_subdir_name := "pixelorama"
|
||||
|
||||
# Declare member variables here. Examples:
|
||||
# var a = 2
|
||||
# var b = "text"
|
||||
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
if OS.has_feature("X11"):
|
||||
xdg_data_home = OS.get_environment("HOME").plus_file(default_xdg_data_home_rel)
|
||||
|
||||
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
#func _process(delta):
|
||||
# pass
|
Loading…
Add table
Add a link
Reference in a new issue