mirror of
https://github.com/rwinkhart/libmutton.git
synced 2026-08-30 22:06:32 -04:00
Export LaunchClipClearProcess; use more reliable method to manipulate os.Args for GUI clients
This commit is contained in:
@@ -9,9 +9,9 @@ import (
|
||||
"strconv"
|
||||
)
|
||||
|
||||
// launchClipClearProcess launches the automated clipboard clearing process.
|
||||
// LaunchClipClearProcess launches the timed clipboard clearing process.
|
||||
// For non-interactive CLI implementations, an entirely separate process is created for this purpose.
|
||||
func launchClipClearProcess(copySubject string, isWayland bool) {
|
||||
func LaunchClipClearProcess(copySubject string, isWayland bool) {
|
||||
executableName := os.Args[0]
|
||||
cmd := exec.Command(executableName, "clipclear", strconv.FormatBool(isWayland))
|
||||
writeToStdin(cmd, copySubject)
|
||||
|
||||
Reference in New Issue
Block a user