feat: add hotkey registration error handling and dynamic icon generation

This commit is contained in:
jahruz67
2026-05-19 16:10:40 -07:00
parent b0f4ea3e6f
commit b6ae530876
11 changed files with 139 additions and 9 deletions
+2
View File
@@ -135,6 +135,7 @@ func portalKeySpecName(key Key) string {
func portalWaitRequest(conn *dbus.Conn, reqPath dbus.ObjectPath) (uint32, map[string]dbus.Variant, error) {
ch := make(chan *dbus.Signal, 8)
conn.Signal(ch)
defer conn.RemoveSignal(ch)
rule := fmt.Sprintf(
"type='signal',path='%s',interface='%s',member='Response'",
string(reqPath), ifaceRequest,
@@ -318,6 +319,7 @@ func (hk *Hotkey) portalSignalLoop() {
ch := make(chan *dbus.Signal, 32)
conn.Signal(ch)
defer conn.RemoveSignal(ch)
rule := fmt.Sprintf(
"type='signal',interface='%s'",
ifaceGlobalShortcuts,