Fourth round of fixes

This commit is contained in:
2025-09-30 00:33:20 -04:00
parent 1d6d89be05
commit 2905fbc275
6 changed files with 26 additions and 44 deletions
+8 -1
View File
@@ -1,5 +1,9 @@
package main
import (
"strings"
)
func cosmic() {
version := "/v1/"
filenamesToValues := map[string]string{
@@ -21,8 +25,11 @@ func cosmic() {
"Panel.Panel" + version + "size": "XS",
"Tk" + version + "show_maximize": "false"}
mkdir(mountPoint + "/home/" + getUsername() + "/.config/cosmic")
for key, value := range filenamesToValues {
writeFile(mountPoint+"/home/"+getUsername()+"/.config/cosmic/com.system76.Cosmic"+key, value+"\n", getUsername(), 0755)
filePath := mountPoint + "/home/" + getUsername() + "/.config/cosmic/com.system76.Cosmic" + key
mkdir(filePath[:strings.LastIndex(filePath, "/")])
writeFile(filePath, value+"\n", getUsername(), 0755)
}
// Replace SDDM with cosmic-greeter