Consolidate shared UI, hardware transport, and translation tooling
This commit is contained in:
1 parent
ed6951f4cd
commit
2c612de63b
61 files changed
+2417
-1573
No files matched your search
@@ -25,10 +25,10 @@ func DefaultSocketAddress() string {
|
||||
if uid := os.Getenv("SUDO_UID"); uid != "" {
|
||||
if parsed, err := strconv.ParseUint(uid, 10, 32); err == nil {
|
||||
runtimeDirectory := os.Getenv("XDG_RUNTIME_DIR")
|
||||
if !owned_directory(runtimeDirectory, uint32(parsed)) {
|
||||
if !ownedDirectory(runtimeDirectory, uint32(parsed)) {
|
||||
runtimeDirectory = filepath.Join("/run/user", uid)
|
||||
}
|
||||
if !owned_directory(runtimeDirectory, uint32(parsed)) {
|
||||
if !ownedDirectory(runtimeDirectory, uint32(parsed)) {
|
||||
if account, err := user.LookupId(uid); err == nil {
|
||||
runtimeDirectory = filepath.Join(account.HomeDir, ".cache")
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user