Export LaunchClipClearProcess; use more reliable method to manipulate os.Args for GUI clients

This commit is contained in:
2024-12-21 16:05:04 -05:00
parent 3b57d59ddc
commit f9aa2fc374
5 changed files with 13 additions and 11 deletions
+4 -3
View File
@@ -2,8 +2,9 @@
package core
// launchClipClearProcess launches the automated clipboard clearing process.
// LaunchClipClearProcess launches the timed clipboard clearing process.
// For interactive GUI/TUI implementations, the clipboard clearing process is launched as a goroutine.
func launchClipClearProcess(copySubject string) {
go clipClearProcess(copySubject)
// copySubject can be omitted to clear the clipboard immediately and unconditionally.
func LaunchClipClearProcess(copySubject string) {
go ClipClearProcess(copySubject)
}