diff options
| author | Ophestra Umiker <cat@ophivana.moe> | 2024-09-12 21:07:05 +0900 |
|---|---|---|
| committer | Ophestra Umiker <cat@ophivana.moe> | 2024-09-12 21:07:05 +0900 |
| commit | da6d238d8a15fa583b384b547decbddcda28ff8b (patch) | |
| tree | e0f8b1364fa09e5a5ec7a1d0e86d13c475cde3eb /internal/app/x.go | |
| parent | b0aff891661dfa2f438a7264607a4e6e9caef026 (diff) | |
verbose: remove system package interaction
Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
Diffstat (limited to 'internal/app/x.go')
| -rw-r--r-- | internal/app/x.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/internal/app/x.go b/internal/app/x.go index 414870bf..20c0de1c 100644 --- a/internal/app/x.go +++ b/internal/app/x.go @@ -5,7 +5,7 @@ import ( "os" "git.ophivana.moe/cat/fortify/internal/state" - "git.ophivana.moe/cat/fortify/internal/system" + "git.ophivana.moe/cat/fortify/internal/verbose" "git.ophivana.moe/cat/fortify/internal/xcb" ) @@ -21,9 +21,7 @@ func (a *App) ShareX() { // add environment variable for new process a.AppendEnv(display, d) - if system.V.Verbose { - fmt.Printf("X11: Adding XHost entry SI:localuser:%s to display '%s'\n", a.Username, d) - } + verbose.Printf("X11: Adding XHost entry SI:localuser:%s to display '%s'\n", a.Username, d) if err := xcb.ChangeHosts(xcb.HostModeInsert, xcb.FamilyServerInterpreted, "localuser\x00"+a.Username); err != nil { state.Fatal(fmt.Sprintf("Error adding XHost entry to '%s':", d), err) } else { |
