Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix all menu items disabled #43

Open
Zren opened this issue Mar 19, 2021 · 4 comments
Open

Fix all menu items disabled #43

Zren opened this issue Mar 19, 2021 · 4 comments

Comments

@Zren
Copy link
Owner

Zren commented Mar 19, 2021

As mentioned in Issue #1.

2020-03-28___13-11-31

  • SublimeText > Preferences > Theme > Press Esc to close
  • This probably rebuilds the menu. The QActions inside the KDecoration buttons were probably deleted?

@nicman23 experiences something similar in virt-manager?

@nicman23: virt-manager with appmenu-gtk-module is non functional with lim. most entries are greyed out and i cannot switch from console to display. if you need a video or a log just tell what you want me to send you.

@Zren
Copy link
Owner Author

Zren commented Mar 19, 2021

Openining virt-manager appears to be fine. However closing it to the system tray, then opening it again causes it to not display the menu. The Reveal on Hover animation is still in effect so it still thinks there's a menu. However it's possible that it's not detecting the menu change. When I added the Global Menu widget, it properly displays the menu while LIM does not. I'll need to investigate which bindings the widget has that LIM does not.

I noticed this in journalctl -b0 -f when opening the virt-manager window.

Mar 19 14:11:17 chris-desktop gmenudbusmenuproxy[1256]: QDBusSignature: invalid signature ""
Mar 19 14:11:17 chris-desktop gmenudbusmenuproxy[1256]: QDBusSignature: invalid signature ""
Mar 19 14:11:17 chris-desktop gmenudbusmenuproxy[1256]: QDBusSignature: invalid signature ""
Mar 19 14:11:17 chris-desktop gmenudbusmenuproxy[1256]: QDBusSignature: invalid signature ""
Mar 19 14:11:17 chris-desktop gmenudbusmenuproxy[1256]: QDBusSignature: invalid signature ""
Mar 19 14:11:17 chris-desktop gmenudbusmenuproxy[1256]: QDBusSignature: invalid signature ""
Mar 19 14:11:17 chris-desktop gmenudbusmenuproxy[1256]: QDBusSignature: invalid signature ""
Mar 19 14:11:17 chris-desktop gmenudbusmenuproxy[1256]: QDBusSignature: invalid signature ""
Mar 19 14:11:17 chris-desktop gmenudbusmenuproxy[1256]: QDBusSignature: invalid signature ""
Mar 19 14:11:17 chris-desktop gmenudbusmenuproxy[1256]: QDBusSignature: invalid signature ""
Mar 19 14:11:17 chris-desktop gmenudbusmenuproxy[1256]: QDBusSignature: invalid signature ""
Mar 19 14:11:17 chris-desktop gmenudbusmenuproxy[1256]: QDBusSignature: invalid signature ""
Mar 19 14:11:17 chris-desktop gmenudbusmenuproxy[1256]: QDBusSignature: invalid signature ""
Mar 19 14:11:17 chris-desktop gmenudbusmenuproxy[1256]: QDBusSignature: invalid signature ""
Mar 19 14:11:17 chris-desktop gmenudbusmenuproxy[1256]: QDBusSignature: invalid signature ""
Mar 19 14:11:17 chris-desktop gmenudbusmenuproxy[1256]: QDBusSignature: invalid signature ""
Mar 19 14:11:17 chris-desktop gmenudbusmenuproxy[1256]: QDBusSignature: invalid signature ""
Mar 19 14:11:17 chris-desktop gmenudbusmenuproxy[1256]: QDBusSignature: invalid signature ""
Mar 19 14:11:17 chris-desktop gmenudbusmenuproxy[1256]: QDBusSignature: invalid signature ""

@nicman23
Copy link

try getting to switch from console to details (in a vm). that is the biggest issue.

frankly i did not even know that virt-manager had a tray icon :P

@Zren Zren mentioned this issue Apr 8, 2021
@Zren
Copy link
Owner Author

Zren commented Apr 28, 2021

Did a little debugging.

  • Run xprop + click Sublime Text window.
    • _KDE_NET_WM_APPMENU_OBJECT_PATH(STRING) = "/MenuBar/320"
    • _KDE_NET_WM_APPMENU_SERVICE_NAME(STRING) = "org.kde.plasma.gmenu_dbusmenu_proxy"
  • Run qdbusviewer
    • org.kde.plasma.gmenu_dbusmenu_proxy => /MenuBar => /320
    • DoubleClicked the 3 signals (ItemsPropertiesUpdated, LayoutUpdated, ItemActivationRequested)
    • DoubleClicked the 2 properties (Status, Version)
  • SublimeText > Preferences... > Theme
Connected to D-Bus.

Received reply from :1.15
  Arguments: [Variant(uint): 4]
Received reply from :1.15
  Arguments: [Variant(QString): "normal"]
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member LayoutUpdated
  Arguments: 3, 2000000
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member LayoutUpdated
  Arguments: 3, 2000000
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member ItemsPropertiesUpdated
  Arguments: [Argument: a(ia{sv}) {[Argument: (ia{sv}) 1001001, [Argument: a{sv} {"enabled" = [Variant(bool): true], "label" = [Variant(QString): "_New File"], "visible" = [Variant(bool): true]}]]}], [Argument: a(ias) {}]
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member ItemsPropertiesUpdated
  Arguments: [Argument: a(ia{sv}) {[Argument: (ia{sv}) 1001002, [Argument: a{sv} {"enabled" = [Variant(bool): true], "label" = [Variant(QString): "_Open File…"], "visible" = [Variant(bool): true]}]]}], [Argument: a(ias) {}]
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member ItemsPropertiesUpdated
  Arguments: [Argument: a(ia{sv}) {[Argument: (ia{sv}) 1001007, [Argument: a{sv} {"enabled" = [Variant(bool): true], "icon-name" = [Variant(QString): "document-save"], "label" = [Variant(QString): "_Save"], "visible" = [Variant(bool): true]}]]}], [Argument: a(ias) {}]
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member ItemsPropertiesUpdated
  Arguments: [Argument: a(ia{sv}) {[Argument: (ia{sv}) 1001009, [Argument: a{sv} {"enabled" = [Variant(bool): true], "icon-name" = [Variant(QString): "document-save-as"], "label" = [Variant(QString): "Save _As…"], "visible" = [Variant(bool): true]}]]}], [Argument: a(ias) {}]
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member ItemsPropertiesUpdated
  Arguments: [Argument: a(ia{sv}) {[Argument: (ia{sv}) 1002001, [Argument: a{sv} {"enabled" = [Variant(bool): true], "icon-name" = [Variant(QString): "window-new"], "label" = [Variant(QString): "New _Window"], "visible" = [Variant(bool): true]}]]}], [Argument: a(ias) {}]
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member ItemsPropertiesUpdated
  Arguments: [Argument: a(ia{sv}) {[Argument: (ia{sv}) 1002002, [Argument: a{sv} {"enabled" = [Variant(bool): true], "label" = [Variant(QString): "Close Window"], "visible" = [Variant(bool): true]}]]}], [Argument: a(ias) {}]
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member ItemsPropertiesUpdated
  Arguments: [Argument: a(ia{sv}) {[Argument: (ia{sv}) 1003001, [Argument: a{sv} {"enabled" = [Variant(bool): true], "label" = [Variant(QString): "_Close File"], "visible" = [Variant(bool): true]}]]}], [Argument: a(ias) {}]
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member ItemsPropertiesUpdated
  Arguments: [Argument: a(ia{sv}) {[Argument: (ia{sv}) 1004001, [Argument: a{sv} {"enabled" = [Variant(bool): true], "icon-name" = [Variant(QString): "application-exit"], "label" = [Variant(QString): "_Quit"], "visible" = [Variant(bool): true]}]]}], [Argument: a(ias) {}]
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member ItemsPropertiesUpdated
  Arguments: [Argument: a(ia{sv}) {[Argument: (ia{sv}) 2001001, [Argument: a{sv} {"enabled" = [Variant(bool): false], "label" = [Variant(QString): "_Undo"], "visible" = [Variant(bool): true]}]]}], [Argument: a(ias) {}]
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member ItemsPropertiesUpdated
  Arguments: [Argument: a(ia{sv}) {[Argument: (ia{sv}) 2001002, [Argument: a{sv} {"enabled" = [Variant(bool): false], "label" = [Variant(QString): "_Redo"], "visible" = [Variant(bool): true]}]]}], [Argument: a(ias) {}]
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member ItemsPropertiesUpdated
  Arguments: [Argument: a(ia{sv}) {[Argument: (ia{sv}) 2002001, [Argument: a{sv} {"enabled" = [Variant(bool): true], "label" = [Variant(QString): "_Copy"], "visible" = [Variant(bool): true]}]]}], [Argument: a(ias) {}]
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member ItemsPropertiesUpdated
  Arguments: [Argument: a(ia{sv}) {[Argument: (ia{sv}) 2002002, [Argument: a{sv} {"enabled" = [Variant(bool): true], "label" = [Variant(QString): "Cu_t"], "visible" = [Variant(bool): true]}]]}], [Argument: a(ias) {}]
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member ItemsPropertiesUpdated
  Arguments: [Argument: a(ia{sv}) {[Argument: (ia{sv}) 2002003, [Argument: a{sv} {"enabled" = [Variant(bool): true], "label" = [Variant(QString): "_Paste"], "visible" = [Variant(bool): true]}]]}], [Argument: a(ias) {}]
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member ItemsPropertiesUpdated
  Arguments: [Argument: a(ia{sv}) {[Argument: (ia{sv}) 2002004, [Argument: a{sv} {"enabled" = [Variant(bool): true], "label" = [Variant(QString): "Paste and _Indent"], "visible" = [Variant(bool): true]}]]}], [Argument: a(ias) {}]
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member ItemsPropertiesUpdated
  Arguments: [Argument: a(ia{sv}) {[Argument: (ia{sv}) 2003009, [Argument: a{sv} {"enabled" = [Variant(bool): true], "label" = [Variant(QString): "Show Completions"], "visible" = [Variant(bool): true]}]]}], [Argument: a(ias) {}]
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member ItemsPropertiesUpdated
  Arguments: [Argument: a(ia{sv}) {[Argument: (ia{sv}) 2004001, [Argument: a{sv} {"enabled" = [Variant(bool): true], "label" = [Variant(QString): "_Sort Lines"], "visible" = [Variant(bool): true]}]]}], [Argument: a(ias) {}]
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member ItemsPropertiesUpdated
  Arguments: [Argument: a(ia{sv}) {[Argument: (ia{sv}) 2004002, [Argument: a{sv} {"enabled" = [Variant(bool): true], "label" = [Variant(QString): "Sort Lines (Case Sensitive)"], "visible" = [Variant(bool): true]}]]}], [Argument: a(ias) {}]
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member ItemsPropertiesUpdated
  Arguments: [Argument: a(ia{sv}) {[Argument: (ia{sv}) 3001001, [Argument: a{sv} {"enabled" = [Variant(bool): true], "label" = [Variant(QString): "Split into Lines"], "visible" = [Variant(bool): true]}]]}], [Argument: a(ias) {}]
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member ItemsPropertiesUpdated
  Arguments: [Argument: a(ia{sv}) {[Argument: (ia{sv}) 3001002, [Argument: a{sv} {"enabled" = [Variant(bool): true], "label" = [Variant(QString): "Add Previous Line"], "visible" = [Variant(bool): true]}]]}], [Argument: a(ias) {}]
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member ItemsPropertiesUpdated
  Arguments: [Argument: a(ia{sv}) {[Argument: (ia{sv}) 3001003, [Argument: a{sv} {"enabled" = [Variant(bool): true], "label" = [Variant(QString): "Add Next Line"], "visible" = [Variant(bool): true]}]]}], [Argument: a(ias) {}]
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member ItemsPropertiesUpdated
  Arguments: [Argument: a(ia{sv}) {[Argument: (ia{sv}) 3001004, [Argument: a{sv} {"enabled" = [Variant(bool): true], "label" = [Variant(QString): "Single Selection"], "visible" = [Variant(bool): true]}]]}], [Argument: a(ias) {}]
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member ItemsPropertiesUpdated
  Arguments: [Argument: a(ia{sv}) {[Argument: (ia{sv}) 3002001, [Argument: a{sv} {"enabled" = [Variant(bool): true], "label" = [Variant(QString): "Select All"], "visible" = [Variant(bool): true]}]]}], [Argument: a(ias) {}]
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member ItemsPropertiesUpdated
  Arguments: [Argument: a(ia{sv}) {[Argument: (ia{sv}) 3002002, [Argument: a{sv} {"enabled" = [Variant(bool): true], "label" = [Variant(QString): "Expand Selection to Line"], "visible" = [Variant(bool): true]}]]}], [Argument: a(ias) {}]
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member ItemsPropertiesUpdated
  Arguments: [Argument: a(ia{sv}) {[Argument: (ia{sv}) 3002003, [Argument: a{sv} {"enabled" = [Variant(bool): true], "label" = [Variant(QString): "Expand Selection to Word"], "visible" = [Variant(bool): true]}]]}], [Argument: a(ias) {}]
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member ItemsPropertiesUpdated
  Arguments: [Argument: a(ia{sv}) {[Argument: (ia{sv}) 3002005, [Argument: a{sv} {"enabled" = [Variant(bool): true], "label" = [Variant(QString): "Expand Selection to Scope"], "visible" = [Variant(bool): true]}]]}], [Argument: a(ias) {}]
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member ItemsPropertiesUpdated
  Arguments: [Argument: a(ia{sv}) {[Argument: (ia{sv}) 3002006, [Argument: a{sv} {"enabled" = [Variant(bool): true], "label" = [Variant(QString): "Expand Selection to Brackets"], "visible" = [Variant(bool): true]}]]}], [Argument: a(ias) {}]
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member ItemsPropertiesUpdated
  Arguments: [Argument: a(ia{sv}) {[Argument: (ia{sv}) 3002007, [Argument: a{sv} {"enabled" = [Variant(bool): true], "label" = [Variant(QString): "Expand Selection to Indentation"], "visible" = [Variant(bool): true]}]]}], [Argument: a(ias) {}]
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member ItemsPropertiesUpdated
  Arguments: [Argument: a(ia{sv}) {[Argument: (ia{sv}) 4001001, [Argument: a{sv} {"enabled" = [Variant(bool): true], "icon-name" = [Variant(QString): "edit-find"], "label" = [Variant(QString): "Find…"], "visible" = [Variant(bool): true]}]]}], [Argument: a(ias) {}]
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member ItemsPropertiesUpdated
  Arguments: [Argument: a(ia{sv}) {[Argument: (ia{sv}) 4001002, [Argument: a{sv} {"enabled" = [Variant(bool): true], "label" = [Variant(QString): "Find Next"], "visible" = [Variant(bool): true]}]]}], [Argument: a(ias) {}]
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member ItemsPropertiesUpdated
  Arguments: [Argument: a(ia{sv}) {[Argument: (ia{sv}) 4001003, [Argument: a{sv} {"enabled" = [Variant(bool): true], "label" = [Variant(QString): "Find Previous"], "visible" = [Variant(bool): true]}]]}], [Argument: a(ias) {}]
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member ItemsPropertiesUpdated
  Arguments: [Argument: a(ia{sv}) {[Argument: (ia{sv}) 4001004, [Argument: a{sv} {"enabled" = [Variant(bool): true], "label" = [Variant(QString): "Incremental Find"], "visible" = [Variant(bool): true]}]]}], [Argument: a(ias) {}]
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member ItemsPropertiesUpdated
  Arguments: [Argument: a(ia{sv}) {[Argument: (ia{sv}) 4002001, [Argument: a{sv} {"enabled" = [Variant(bool): true], "icon-name" = [Variant(QString): "edit-find-replace"], "label" = [Variant(QString): "Replace…"], "visible" = [Variant(bool): true]}]]}], [Argument: a(ias) {}]
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member ItemsPropertiesUpdated
  Arguments: [Argument: a(ia{sv}) {[Argument: (ia{sv}) 4002002, [Argument: a{sv} {"enabled" = [Variant(bool): true], "label" = [Variant(QString): "Replace Next"], "visible" = [Variant(bool): true]}]]}], [Argument: a(ias) {}]
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member ItemsPropertiesUpdated
  Arguments: [Argument: a(ia{sv}) {[Argument: (ia{sv}) 4003001, [Argument: a{sv} {"enabled" = [Variant(bool): true], "label" = [Variant(QString): "Quick Find"], "visible" = [Variant(bool): true]}]]}], [Argument: a(ias) {}]
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member ItemsPropertiesUpdated
  Arguments: [Argument: a(ia{sv}) {[Argument: (ia{sv}) 4003002, [Argument: a{sv} {"enabled" = [Variant(bool): true], "label" = [Variant(QString): "Quick Find All"], "visible" = [Variant(bool): true]}]]}], [Argument: a(ias) {}]
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member ItemsPropertiesUpdated
  Arguments: [Argument: a(ia{sv}) {[Argument: (ia{sv}) 4003003, [Argument: a{sv} {"enabled" = [Variant(bool): true], "label" = [Variant(QString): "Quick Add Next"], "visible" = [Variant(bool): true]}]]}], [Argument: a(ias) {}]
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member ItemsPropertiesUpdated
  Arguments: [Argument: a(ia{sv}) {[Argument: (ia{sv}) 4004001, [Argument: a{sv} {"enabled" = [Variant(bool): true], "label" = [Variant(QString): "Use Selection for Find"], "visible" = [Variant(bool): true]}]]}], [Argument: a(ias) {}]
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member ItemsPropertiesUpdated
  Arguments: [Argument: a(ia{sv}) {[Argument: (ia{sv}) 4004002, [Argument: a{sv} {"enabled" = [Variant(bool): true], "label" = [Variant(QString): "Use Selection for Replace"], "visible" = [Variant(bool): true]}]]}], [Argument: a(ias) {}]
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member ItemsPropertiesUpdated
  Arguments: [Argument: a(ia{sv}) {[Argument: (ia{sv}) 4005001, [Argument: a{sv} {"enabled" = [Variant(bool): true], "label" = [Variant(QString): "Find in Files…"], "visible" = [Variant(bool): true]}]]}], [Argument: a(ias) {}]
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member ItemsPropertiesUpdated
  Arguments: [Argument: a(ia{sv}) {[Argument: (ia{sv}) 5001006, [Argument: a{sv} {"enabled" = [Variant(bool): true], "label" = [Variant(QString): "Show Console"], "visible" = [Variant(bool): true]}]]}], [Argument: a(ias) {}]
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member ItemsPropertiesUpdated
  Arguments: [Argument: a(ia{sv}) {[Argument: (ia{sv}) 5002001, [Argument: a{sv} {"enabled" = [Variant(bool): true], "label" = [Variant(QString): "Enter Full Screen"], "visible" = [Variant(bool): true]}]]}], [Argument: a(ias) {}]
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member ItemsPropertiesUpdated
  Arguments: [Argument: a(ia{sv}) {[Argument: (ia{sv}) 5002002, [Argument: a{sv} {"enabled" = [Variant(bool): true], "label" = [Variant(QString): "Enter Distraction Free Mode"], "visible" = [Variant(bool): true]}]]}], [Argument: a(ias) {}]
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member ItemsPropertiesUpdated
  Arguments: [Argument: a(ia{sv}) {[Argument: (ia{sv}) 5006001, [Argument: a{sv} {"enabled" = [Variant(bool): true], "label" = [Variant(QString): "Spell Check"], "toggle-state" = [Variant(int): 0], "toggle-type" = [Variant(QString): "checkbox"], "visible" = [Variant(bool): true]}]]}], [Argument: a(ias) {}]
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member ItemsPropertiesUpdated
  Arguments: [Argument: a(ia{sv}) {[Argument: (ia{sv}) 5006002, [Argument: a{sv} {"enabled" = [Variant(bool): false], "label" = [Variant(QString): "Next Misspelling"], "visible" = [Variant(bool): true]}]]}], [Argument: a(ias) {}]
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member ItemsPropertiesUpdated
  Arguments: [Argument: a(ia{sv}) {[Argument: (ia{sv}) 5006003, [Argument: a{sv} {"enabled" = [Variant(bool): false], "label" = [Variant(QString): "Prev Misspelling"], "visible" = [Variant(bool): true]}]]}], [Argument: a(ias) {}]
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member ItemsPropertiesUpdated
  Arguments: [Argument: a(ia{sv}) {[Argument: (ia{sv}) 6001001, [Argument: a{sv} {"enabled" = [Variant(bool): true], "label" = [Variant(QString): "Goto _Anything…"], "visible" = [Variant(bool): true]}]]}], [Argument: a(ias) {}]
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member ItemsPropertiesUpdated
  Arguments: [Argument: a(ia{sv}) {[Argument: (ia{sv}) 6002001, [Argument: a{sv} {"enabled" = [Variant(bool): true], "label" = [Variant(QString): "Goto Symbol…"], "visible" = [Variant(bool): true]}]]}], [Argument: a(ias) {}]
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member ItemsPropertiesUpdated
  Arguments: [Argument: a(ia{sv}) {[Argument: (ia{sv}) 6002002, [Argument: a{sv} {"enabled" = [Variant(bool): true], "label" = [Variant(QString): "Goto Symbol in Project…"], "visible" = [Variant(bool): true]}]]}], [Argument: a(ias) {}]
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member ItemsPropertiesUpdated
  Arguments: [Argument: a(ia{sv}) {[Argument: (ia{sv}) 6002003, [Argument: a{sv} {"enabled" = [Variant(bool): true], "label" = [Variant(QString): "Goto Definition…"], "visible" = [Variant(bool): true]}]]}], [Argument: a(ias) {}]
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member ItemsPropertiesUpdated
  Arguments: [Argument: a(ia{sv}) {[Argument: (ia{sv}) 6002004, [Argument: a{sv} {"enabled" = [Variant(bool): true], "label" = [Variant(QString): "Goto Reference…"], "visible" = [Variant(bool): true]}]]}], [Argument: a(ias) {}]
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member ItemsPropertiesUpdated
  Arguments: [Argument: a(ia{sv}) {[Argument: (ia{sv}) 6002005, [Argument: a{sv} {"enabled" = [Variant(bool): true], "label" = [Variant(QString): "Goto Line…"], "visible" = [Variant(bool): true]}]]}], [Argument: a(ias) {}]
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member ItemsPropertiesUpdated
  Arguments: [Argument: a(ia{sv}) {[Argument: (ia{sv}) 6003001, [Argument: a{sv} {"enabled" = [Variant(bool): true], "label" = [Variant(QString): "Jump Back"], "visible" = [Variant(bool): true]}]]}], [Argument: a(ias) {}]
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member ItemsPropertiesUpdated
  Arguments: [Argument: a(ia{sv}) {[Argument: (ia{sv}) 6003002, [Argument: a{sv} {"enabled" = [Variant(bool): true], "label" = [Variant(QString): "Jump Forward"], "visible" = [Variant(bool): true]}]]}], [Argument: a(ias) {}]
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member ItemsPropertiesUpdated
  Arguments: [Argument: a(ia{sv}) {[Argument: (ia{sv}) 6006001, [Argument: a{sv} {"enabled" = [Variant(bool): true], "label" = [Variant(QString): "Jump to Matching Bracket"], "visible" = [Variant(bool): true]}]]}], [Argument: a(ias) {}]
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member ItemsPropertiesUpdated
  Arguments: [Argument: a(ia{sv}) {[Argument: (ia{sv}) 7001001, [Argument: a{sv} {"enabled" = [Variant(bool): true], "label" = [Variant(QString): "Command Palette…"], "visible" = [Variant(bool): true]}]]}], [Argument: a(ias) {}]
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member ItemsPropertiesUpdated
  Arguments: [Argument: a(ia{sv}) {[Argument: (ia{sv}) 7002002, [Argument: a{sv} {"enabled" = [Variant(bool): true], "label" = [Variant(QString): "_Build"], "visible" = [Variant(bool): true]}]]}], [Argument: a(ias) {}]
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member ItemsPropertiesUpdated
  Arguments: [Argument: a(ia{sv}) {[Argument: (ia{sv}) 7003001, [Argument: a{sv} {"enabled" = [Variant(bool): true], "label" = [Variant(QString): "Record _Macro"], "visible" = [Variant(bool): true]}]]}], [Argument: a(ias) {}]
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member ItemsPropertiesUpdated
  Arguments: [Argument: a(ia{sv}) {[Argument: (ia{sv}) 7003002, [Argument: a{sv} {"enabled" = [Variant(bool): false], "label" = [Variant(QString): "_Playback Macro"], "visible" = [Variant(bool): true]}]]}], [Argument: a(ias) {}]
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member ItemsPropertiesUpdated
  Arguments: [Argument: a(ia{sv}) {[Argument: (ia{sv}) 8001003, [Argument: a{sv} {"enabled" = [Variant(bool): true], "label" = [Variant(QString): "Quick _Switch Project…"], "visible" = [Variant(bool): true]}]]}], [Argument: a(ias) {}]
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member LayoutUpdated
  Arguments: 3, 2000
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member LayoutUpdated
  Arguments: 3, 2000
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member LayoutUpdated
  Arguments: 3, 2000
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member LayoutUpdated
  Arguments: 3, 2000
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member LayoutUpdated
  Arguments: 3, 2000
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member LayoutUpdated
  Arguments: 3, 2000
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member LayoutUpdated
  Arguments: 3, 2000
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member LayoutUpdated
  Arguments: 3, 2000
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member LayoutUpdated
  Arguments: 3, 2000
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member LayoutUpdated
  Arguments: 3, 2000
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member LayoutUpdated
  Arguments: 3, 2000
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member LayoutUpdated
  Arguments: 3, 2000
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member LayoutUpdated
  Arguments: 3, 2000
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member LayoutUpdated
  Arguments: 3, 2000
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member LayoutUpdated
  Arguments: 3, 2000
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member LayoutUpdated
  Arguments: 3, 2000
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member LayoutUpdated
  Arguments: 3, 2000
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member LayoutUpdated
  Arguments: 3, 2000
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member LayoutUpdated
  Arguments: 3, 2000
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member LayoutUpdated
  Arguments: 3, 2000
Received signal from :1.15, path /MenuBar/320, interface com.canonical.dbusmenu, member ItemsPropertiesUpdated
  Arguments: [Argument: a(ia{sv}) {[Argument: (ia{sv}) 2004001, [Argument: a{sv} {"enabled" = [Variant(bool): false], "label" = [Variant(QString): "_Sort Lines"], "visible" = [Variant(bool): true]}]], [Argument: (ia{sv}) 4004001, [Argument: a{sv} {"enabled" = [Variant(bool): false], "label" = [Variant(QString): "Use Selection for Find"], "visible" = [Variant(bool): true]}]], ...]

@Zren
Copy link
Owner Author

Zren commented Jul 10, 2021

Using this patch to debug the property change events, I've logged the "License" section in SublimeText4.

...
org.kde.libdbusmenuqt: action[10003001].enabled = "true" ==> "false"    QAction(text="")
org.kde.libdbusmenuqt: Created id 10003001 QAction(0x55f74fb42570 text="" menuRole=TextHeuristicRole visible=true)
org.kde.libdbusmenuqt: action[10003002].enabled = "true" ==> "false"    QAction(text="")
org.kde.libdbusmenuqt: Created id 10003002 QAction(0x55f74fb41ac0 text="" menuRole=TextHeuristicRole visible=true)
org.kde.libdbusmenuqt: action[10003003].enabled = "true" ==> "false"    QAction(text="")
org.kde.libdbusmenuqt: action[10003003].text = "" ==> "Enter License"    QAction(text="")
org.kde.libdbusmenuqt: Created id 10003003 QAction(0x55f74fac0820 text="Enter License" toolTip="Enter License" menuRole=TextHeuristicRole visible=true)
org.kde.libdbusmenuqt: action[10003004].enabled = "true" ==> "false"    QAction(text="")
org.kde.libdbusmenuqt: Created id 10003004 QAction(0x55f74fb42cc0 text="" menuRole=TextHeuristicRole visible=true)
...
org.kde.libdbusmenuqt: action[10003001].enabled = "false" ==> "true"    QAction(text="")
org.kde.libdbusmenuqt: action[10003002].enabled = "false" ==> "true"    QAction(text="")
org.kde.libdbusmenuqt: action[10003004].enabled = "false" ==> "true"    QAction(text="")
org.kde.libdbusmenuqt: action[10003003].enabled = "false" ==> "true"    QAction(text="Enter License")
...

New Window Loses Focus

...
org.kde.libdbusmenuqt: slotGetLayoutFinished parentId 7004000
org.kde.libdbusmenuqt: No menu for id 7004000
org.kde.libdbusmenuqt: action[8001003].shortcut = "" ==> "Ctrl+Alt+P"    QAction(text="Quick &Switch Project…")
org.kde.libdbusmenuqt: action[10003001].text = "" ==> "Purchase License"    QAction(text="")
org.kde.libdbusmenuqt: action[10003001].text = "Purchase License" ==> "Upgrade License"    QAction(text="Purchase License")
org.kde.libdbusmenuqt: action[10003002].text = "" ==> "Remove License"    QAction(text="")
org.kde.libdbusmenuqt: slotGetLayoutFinished parentId 10003000
org.kde.libdbusmenuqt: No menu for id 10003000
org.kde.libdbusmenuqt: slotGetLayoutFinished parentId 10003000
org.kde.libdbusmenuqt: No menu for id 10003000
org.kde.libdbusmenuqt: Unhandled property update "children-display"
org.kde.libdbusmenuqt: action[7004002].text = "Install Package Control…" ==> "Packages"    QAction(text="Install Package Control…")
org.kde.libdbusmenuqt: action[10003003].text = "Enter License" ==> ""    QAction(text="Enter License")
org.kde.libdbusmenuqt: action[7002004].enabled = "true" ==> "false"    QAction(text="&Cancel Build")
...

Opening Help

kdecoration.material: menuUpdated
kdecoration.material: menu QMenu(0x55f74facbfd0)
kdecoration.material: menu->title "&Help"
kdecoration.material: menu->parent QMenu(0x7f36ac00ba30)
kdecoration.material: menu->parent->title ""
kdecoration.material: m_impo QMenu(0x7f36ac00ba30)
kdecoration.material: m_menu QMenu(0x7f36ac00ba30)
kdecoration.material: toplevel QMenu 10
org.kde.libdbusmenuqt: slotGetLayoutFinished parentId 2000000
org.kde.libdbusmenuqt: No menu for id 2000000
org.kde.libdbusmenuqt: action[1001006].enabled = "false" ==> "true"    QAction(text="Split Vi&ew")

On another note, after changing the theme with "Select Theme", it seems to disable most menu items. If we look closer at the GTK dbus service that is proxied into the KDE gmenu_dbusmenu_proxy service, I noticed that many items were removed.

Before

qdbus :1.630 /org/appmenu/gtk/window/58 org.gtk.Actions.List

{"-Sort-Lines", "Use-Selection-for-Find", "-Package-Settings", "F-ind-0", "-Help", "-Playback-Macro", "Side-Bar-0", "17", "Prefere-nces", "Save-with-Encoding-0", "-Line", "-Bookmarks-0", "F-ind", "Groups", "Code-Folding-0", "Permute-Lines", "-Indentation", "-Syntax", "18", "Git-0", "Save--All-on-Build", "Convert-C-ase", "-View", "Wrap-0", "-View-0", "Cancel-Find-in-Files", "Goto--Anything---", "Find-in-Files---", "Open-Project---", "Split-into-Lines", "19", "Build--Results", "Paste-from-History", "Add-Previous-Line", "Jump-to-Matching-Bracket", "Settings-----Syntax-Specific", "Quick-Skip-Next", "20", "Save-Project--As---", "Packages-0", "0", "Jekyll", "New--Window", "-Move-File-to-Group", "Edit-Project", "Find---", "Mark", "1", "Groups-0", "-Text-0", "Close-Window", "Prefere-nces-0", "-About-Sublime-Text", "Jump-Forward", "New-Workspace-for-Project", "-Close-File", "Convert-C-ase-0", "Goto-Symbol-in-Project---", "2", "Ruler", "R-efresh-Folders", "Expand-Selection-to-Line", "Word-Wrap-Column", "Jump-Back", "Quick--Switch-Project---", "22", "23", "-Save", "3", "Swi-tch-File-0", "Open-Recent", "-Focus-Group-0", "-Bookmarks", "Expand-Selection-to-Brackets", "-Edit", "Command-Palette---", "4", "-Layout", "-Open-File---", "-Scroll-0", "Build-With---", "Macros-0", "Save-with-Encoding", "-Focus-Group", "-Selection", "-Layout-0", "-Tools", "5", "-Package-Settings-0", "Incremental-Find", "Settings", "Expand-Selection-to-Scope", "Undo-Selection-0", "Twitter", "6", "Wrap", "Permute-Lines-0", "Tab-Selection", "Replace---", "Find--Results", "Tag-0", "Word-Wrap-Column-0", "Dictionary", "Next-Modification", "Save-A-ll", "7", "Macros", "Copy-as-HTML", "Switch-Project---", "Build--Results-0", "Expand-Selection-to-Paragraph", "Open--Recent-0", "Find-Previous", "Co-mment", "-New-File", "8", "Previous-Modification", "Quick-Find-All", "Permute-Selections", "Packages", "B-uild-System-0", "Git", "A-dd-Folder-to-Project---", "-File-0", "9", "-File", "Expand-Selection-to-Word", "-Cancel-Build", "-Edit-0", "Settings-----Distraction-Free", "Undo-Selection", "-Scroll", "Developer", "Goto-Symbol---", "Sa-ve-Macro---", "Side-Bar", "Expand-Selection", "Changelog---", "Sort-Lines--Case-Sensitive-", "-Indentation-0", "Swi-tch-File", "Developer-0", "Permute-Selections-0", "Goto-Reference---", "Snippets---", "Font", "-Text", "Goto-Line---", "Key-Bindings", "Report-a-Bug", "Add-Next-Line", "-Project", "10", "Open-Folder---", "Expand-Selection-to-Indentation", "-Syntax-0", "Use-Selection-for-Replace", "Indexing-Status---", "Dictionary-0", "Code-Folding", "Find--Results-0", "-Word-Wrap", "Tab-Selection-0", "Reopen-with-Encoding-0", "Font-0", "11", "Re-move-all-Folders-from-Project", "Documentation", "Spell-Check", "Tag", "12", "-Move-File-to-Group-0", "-Project-0", "Close-All-Files", "-Help-0", "Show-Completions", "-Selection-0", "Goto-Definition---", "Jekyll-0", "-Quit", "-Line-0", "Save--As---", "13", "-Goto", "Re-vert-File", "Li-ne-Endings-0", "Select-Color-Scheme---", "Select-Theme---", "-Browse-Packages---", "14", "Quick-Add-Next", "Split-Vi-ew", "Customize-Color-Scheme", "Reopen-with-Encoding", "Ruler-0", "Mark-0", "-Close-Project", "-Tools-0", "15", "Li-ne-Endings", "Quick-Find", "-Goto-0", "Open--Recent", "B-uild-System", "Open-Recent-0", "Save-Workspace--As---", "Package--Control", "-Print---", "16", "Co-mment-0", "Customize-Theme"}

After

qdbus :1.630 /org/appmenu/gtk/window/58 org.gtk.Actions.List

{"-View-0", "-Goto-0", "-Goto", "-Selection", "-Project", "-Tools-0", "-View", "Prefere-nces-0", "-Help", "-Help-0", "-Selection-0", "-File", "-Tools", "F-ind-0", "F-ind", "Prefere-nces", "-File-0", "-Edit-0", "-Edit", "-Project-0"}

DescribeAll is also very empty.

qdbus :1.630 /org/appmenu/gtk/window/58 org.gtk.Actions.DescribeAll

Arguments: [Argument: a{s(bgav)} {"-View-0" = [Argument: (bgav) true, [Signature: ], [Argument: av {[Variant(bool): true]}]], "-Goto-0" = [Argument: (bgav) true, [Signature: ], [Argument: av {[Variant(bool): true]}]], "-Goto" = [Argument: (bgav) true, [Signature: ], [Argument: av {}]], "-Selection" = [Argument: (bgav) true, [Signature: ], [Argument: av {}]], "-Project" = [Argument: (bgav) true, [Signature: ], [Argument: av {}]], "-Tools-0" = [Argument: (bgav) true, [Signature: ], [Argument: av {[Variant(bool): true]}]], "-View" = [Argument: (bgav) true, [Signature: ], [Argument: av {}]], "Prefere-nces-0" = [Argument: (bgav) true, [Signature: ], [Argument: av {[Variant(bool): true]}]], "-Help" = [Argument: (bgav) true, [Signature: ], [Argument: av {}]], "-Help-0" = [Argument: (bgav) true, [Signature: ], [Argument: av {[Variant(bool): true]}]], "-Selection-0" = [Argument: (bgav) true, [Signature: ], [Argument: av {[Variant(bool): true]}]], "-File" = [Argument: (bgav) true, [Signature: ], [Argument: av {}]], "-Tools" = [Argument: (bgav) true, [Signature: ], [Argument: av {}]], "F-ind-0" = [Argument: (bgav) true, [Signature: ], [Argument: av {[Variant(bool): true]}]], "F-ind" = [Argument: (bgav) true, [Signature: ], [Argument: av {}]], "Prefere-nces" = [Argument: (bgav) true, [Signature: ], [Argument: av {}]], "-File-0" = [Argument: (bgav) true, [Signature: ], [Argument: av {[Variant(bool): true]}]], "-Edit-0" = [Argument: (bgav) true, [Signature: ], [Argument: av {[Variant(bool): true]}]], "-Edit" = [Argument: (bgav) true, [Signature: ], [Argument: av {}]], "-Project-0" = [Argument: (bgav) true, [Signature: ], [Argument: av {[Variant(bool): true]}]]}]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants