mirror of
https://github.com/rwinkhart/libmutton.git
synced 2026-08-27 20:36:29 -04:00
Fix LaunchClipClearProcess() for GUI platforms
This commit is contained in:
@@ -6,5 +6,5 @@ package clip
|
|||||||
// For interactive GUI/TUI implementations, the clipboard clearing process is launched as a goroutine.
|
// For interactive GUI/TUI implementations, the clipboard clearing process is launched as a goroutine.
|
||||||
// copySubject can be omitted to clear the clipboard immediately and unconditionally.
|
// copySubject can be omitted to clear the clipboard immediately and unconditionally.
|
||||||
func LaunchClipClearProcess(copySubject string) {
|
func LaunchClipClearProcess(copySubject string) {
|
||||||
go clipClearProcess(copySubject)
|
go ClipClearProcess(copySubject)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,5 +12,5 @@ import (
|
|||||||
// copySubject can be omitted to clear the clipboard immediately and unconditionally.
|
// copySubject can be omitted to clear the clipboard immediately and unconditionally.
|
||||||
func LaunchClipClearProcess(copySubject string, isWayland bool) {
|
func LaunchClipClearProcess(copySubject string, isWayland bool) {
|
||||||
os.Args = []string{os.Args[0], "", strconv.FormatBool(isWayland)}
|
os.Args = []string{os.Args[0], "", strconv.FormatBool(isWayland)}
|
||||||
go clipClearProcess(copySubject)
|
go ClipClearProcess(copySubject)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user