2021-11-21 23:05:13 -05:00
|
|
|
package gosecret
|
2021-11-21 18:07:52 -05:00
|
|
|
|
|
|
|
import (
|
|
|
|
`strings`
|
|
|
|
|
|
|
|
`github.com/godbus/dbus`
|
|
|
|
)
|
|
|
|
|
|
|
|
// isPrompt returns a boolean that is true if path is/requires a prompt(ed path) and false if it is/does not.
|
|
|
|
func isPrompt(path dbus.ObjectPath) (prompt bool) {
|
|
|
|
|
|
|
|
prompt = strings.HasPrefix(string(path), PromptPrefix)
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
}
|