Initial QSfera import

This commit is contained in:
Курнат Андрей
2026-06-07 10:20:04 +03:00
commit 2315f25754
16485 changed files with 4826827 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
//go:build !windows
package magick
import (
"fmt"
"os"
"github.com/kovidgoyal/go-shm"
)
var _ = fmt.Print
func get_temp_dir() string {
if shm.SHM_DIR != "" {
tempFile, err := os.CreateTemp(shm.SHM_DIR, "write_check_*")
if err != nil {
return os.TempDir()
}
tempFile.Close()
os.Remove(tempFile.Name())
return shm.SHM_DIR
}
return os.TempDir()
}