Zren / plasma-hud

Provides a way to run menubar commands in KDE Plasma through rofi, much like the Unity 7 Heads-Up Display (HUD).
GNU General Public License v2.0
235 stars 9 forks source link

Not showing label entries on initial launch #27

Open volt4ire opened 5 years ago

volt4ire commented 5 years ago

Whenever I initiate plasma-hud for the first time on a newly-opened instance of Firefox using a hotkey trigger, it only displays the highest level of menus (eg: File, Edit, etc.), and for containing entries only shows "Label Empty". However, if I close out of plasma-hud and then re-run the hotkey, it succeeds at showing individual entries. Can you please help me figure out how to fix this issue? Thanks!

Zren commented 4 years ago

What distro? What version of firefox?

volt4ire commented 4 years ago

@Zren I'm running Kubuntu 19.10 and Firefox 70.0.1 (the latest stable version in the default Ubuntu repos)

pkfm commented 4 years ago

Here is debug information:

> firefox -v
Mozilla Firefox 70.0.1
> plasmashell --version
plasmashell 5.16.5
> kf5-config --version
Qt: 5.12.4
KDE Frameworks: 5.62.0
kf5-config: 1.0
> cat plasma-hud.log
Sat, 07 Dec 2019 14:46:19 DEBUG    rofiVersion: 1.5.4
Sat, 07 Dec 2019 14:46:19 DEBUG    supports_icons: True
Sat, 07 Dec 2019 14:46:19 DEBUG    supports_shortcuts: False

First invocation:

Sat, 07 Dec 2019 14:46:38 DEBUG    toggleHUD.rofi_process: None
Sat, 07 Dec 2019 14:46:38 DEBUG    toggleHUD.openHUD
Sat, 07 Dec 2019 14:46:38 DEBUG    

Sat, 07 Dec 2019 14:46:38 DEBUG    hud()            : 68427.71176245
Sat, 07 Dec 2019 14:46:38 DEBUG    Window id is : 0xa00003
Sat, 07 Dec 2019 14:46:38 DEBUG    WM_CLASS: ['Navigator', 'Firefox']
Sat, 07 Dec 2019 14:46:38 DEBUG    _GTK_UNIQUE_BUS_NAME: :1.819
Sat, 07 Dec 2019 14:46:38 DEBUG    _GTK_MENUBAR_OBJECT_PATH: /org/appmenu/gtk/window/0
Sat, 07 Dec 2019 14:46:38 DEBUG    _GTK_APPLICATION_OBJECT_PATH: None
Sat, 07 Dec 2019 14:46:38 DEBUG    _GTK_WINDOW_OBJECT_PATH: None
Sat, 07 Dec 2019 14:46:38 DEBUG    _UNITY_OBJECT_PATH: /org/appmenu/gtk/window/0
Sat, 07 Dec 2019 14:46:38 DEBUG    _KDE_NET_WM_APPMENU_SERVICE_NAME: :1.819
Sat, 07 Dec 2019 14:46:38 DEBUG    _KDE_NET_WM_APPMENU_OBJECT_PATH: /com/canonical/menu/A00003
Sat, 07 Dec 2019 14:46:38 DEBUG    Trying KDE AppMenu interface
Sat, 07 Dec 2019 14:46:38 DEBUG    init_rofi.before : 68427.739629701
Sat, 07 Dec 2019 14:46:38 DEBUG    init_rofi.rofi_process.start: None
Sat, 07 Dec 2019 14:46:38 DEBUG    === Gtk.Window style_context ===
Sat, 07 Dec 2019 14:46:38 DEBUG    bg_color: #31363b
Sat, 07 Dec 2019 14:46:38 DEBUG    fg_color: #eff0f1
Sat, 07 Dec 2019 14:46:38 DEBUG    borders: #616569
Sat, 07 Dec 2019 14:46:38 DEBUG    selected_bg_color: #3daee9
Sat, 07 Dec 2019 14:46:38 DEBUG    selected_fg_color: #eff0f1
Sat, 07 Dec 2019 14:46:38 DEBUG    error_bg_color: #000000
Sat, 07 Dec 2019 14:46:38 DEBUG    error_fg_color: #000000
Sat, 07 Dec 2019 14:46:38 DEBUG    info_bg_color: #000000
Sat, 07 Dec 2019 14:46:38 DEBUG    info_fg_color: #000000
Sat, 07 Dec 2019 14:46:38 DEBUG    === After ~/.config/plasmahudrc ===
Sat, 07 Dec 2019 14:46:38 DEBUG    bg_color: #111111
Sat, 07 Dec 2019 14:46:38 DEBUG    fg_color: #eeeff0
Sat, 07 Dec 2019 14:46:38 DEBUG    borders: #000000
Sat, 07 Dec 2019 14:46:38 DEBUG    selected_bg_color: #062d25
Sat, 07 Dec 2019 14:46:38 DEBUG    selected_fg_color: #1abc9c
Sat, 07 Dec 2019 14:46:38 DEBUG    error_bg_color: #000000
Sat, 07 Dec 2019 14:46:38 DEBUG    error_fg_color: #000000
Sat, 07 Dec 2019 14:46:38 DEBUG    info_bg_color: #000000
Sat, 07 Dec 2019 14:46:38 DEBUG    info_fg_color: #000000
Sat, 07 Dec 2019 14:46:38 DEBUG    matching: fuzzy
Sat, 07 Dec 2019 14:46:38 DEBUG    sort_items: True
Sat, 07 Dec 2019 14:46:38 DEBUG    num_lines: 15
Sat, 07 Dec 2019 14:46:38 DEBUG    wait_for_sync: True
Sat, 07 Dec 2019 14:46:38 DEBUG    show_icons: True
Sat, 07 Dec 2019 14:46:38 DEBUG    icon_theme: breeze-dark
Sat, 07 Dec 2019 14:46:38 DEBUG    show_shortcuts: True
Sat, 07 Dec 2019 14:46:38 DEBUG    font_name: Mono 10
Sat, 07 Dec 2019 14:46:38 DEBUG    === --------------------------- ===
Sat, 07 Dec 2019 14:46:38 DEBUG    init_rofi.rofi_process.pre: None
Sat, 07 Dec 2019 14:46:38 DEBUG    init_rofi.rofi_process.post: <subprocess.Popen object at 0x7f0bf6c200d0>
Sat, 07 Dec 2019 14:46:38 DEBUG    init_rofi.after  : 68427.776968058
Sat, 07 Dec 2019 14:46:38 DEBUG    get_layout.root  : 68427.778772788
Sat, 07 Dec 2019 14:46:38 DEBUG    get_layout.child : 68427.779520842
Sat, 07 Dec 2019 14:46:38 DEBUG    get_layout.child : 68427.784104552
Sat, 07 Dec 2019 14:46:38 DEBUG    get_layout.child : 68427.795600947
Sat, 07 Dec 2019 14:46:38 DEBUG    get_layout.child : 68427.805035661
Sat, 07 Dec 2019 14:46:38 DEBUG    get_layout.child : 68427.815656478
Sat, 07 Dec 2019 14:46:38 DEBUG    get_layout.child : 68427.869264769
Sat, 07 Dec 2019 14:46:38 DEBUG    get_layout.child : 68427.885689848
Sat, 07 Dec 2019 14:46:38 DEBUG    get_layout.child : 68427.890988452
Sat, 07 Dec 2019 14:46:38 DEBUG    get_layout.nested: 68427.89123227
Sat, 07 Dec 2019 14:46:40 DEBUG    menu_result: ""

Subsequent invocation:

Sat, 07 Dec 2019 14:46:52 DEBUG    toggleHUD.rofi_process: <subprocess.Popen object at 0x7f0bf6c200d0>
Sat, 07 Dec 2019 14:46:52 DEBUG    toggleHUD.openHUD
Sat, 07 Dec 2019 14:46:52 DEBUG    

Sat, 07 Dec 2019 14:46:52 DEBUG    hud()            : 68441.339458264
Sat, 07 Dec 2019 14:46:52 DEBUG    Window id is : 0xa00003
Sat, 07 Dec 2019 14:46:52 DEBUG    WM_CLASS: ['Navigator', 'Firefox']
Sat, 07 Dec 2019 14:46:52 DEBUG    _GTK_UNIQUE_BUS_NAME: :1.819
Sat, 07 Dec 2019 14:46:52 DEBUG    _GTK_MENUBAR_OBJECT_PATH: /org/appmenu/gtk/window/0
Sat, 07 Dec 2019 14:46:52 DEBUG    _GTK_APPLICATION_OBJECT_PATH: None
Sat, 07 Dec 2019 14:46:52 DEBUG    _GTK_WINDOW_OBJECT_PATH: None
Sat, 07 Dec 2019 14:46:52 DEBUG    _UNITY_OBJECT_PATH: /org/appmenu/gtk/window/0
Sat, 07 Dec 2019 14:46:52 DEBUG    _KDE_NET_WM_APPMENU_SERVICE_NAME: :1.819
Sat, 07 Dec 2019 14:46:52 DEBUG    _KDE_NET_WM_APPMENU_OBJECT_PATH: /com/canonical/menu/A00003
Sat, 07 Dec 2019 14:46:52 DEBUG    Trying KDE AppMenu interface
Sat, 07 Dec 2019 14:46:52 DEBUG    init_rofi.before : 68441.351308507
Sat, 07 Dec 2019 14:46:52 DEBUG    init_rofi.rofi_process.start: <subprocess.Popen object at 0x7f0bf6c200d0>
Sat, 07 Dec 2019 14:46:52 DEBUG    === Gtk.Window style_context ===
Sat, 07 Dec 2019 14:46:52 DEBUG    bg_color: #31363b
Sat, 07 Dec 2019 14:46:52 DEBUG    fg_color: #eff0f1
Sat, 07 Dec 2019 14:46:52 DEBUG    borders: #616569
Sat, 07 Dec 2019 14:46:52 DEBUG    selected_bg_color: #3daee9
Sat, 07 Dec 2019 14:46:52 DEBUG    selected_fg_color: #eff0f1
Sat, 07 Dec 2019 14:46:52 DEBUG    error_bg_color: #000000
Sat, 07 Dec 2019 14:46:52 DEBUG    error_fg_color: #000000
Sat, 07 Dec 2019 14:46:52 DEBUG    info_bg_color: #000000
Sat, 07 Dec 2019 14:46:52 DEBUG    info_fg_color: #000000
Sat, 07 Dec 2019 14:46:52 DEBUG    === After ~/.config/plasmahudrc ===
Sat, 07 Dec 2019 14:46:52 DEBUG    bg_color: #111111
Sat, 07 Dec 2019 14:46:52 DEBUG    fg_color: #eeeff0
Sat, 07 Dec 2019 14:46:52 DEBUG    borders: #000000
Sat, 07 Dec 2019 14:46:52 DEBUG    selected_bg_color: #062d25
Sat, 07 Dec 2019 14:46:52 DEBUG    selected_fg_color: #1abc9c
Sat, 07 Dec 2019 14:46:52 DEBUG    error_bg_color: #000000
Sat, 07 Dec 2019 14:46:52 DEBUG    error_fg_color: #000000
Sat, 07 Dec 2019 14:46:52 DEBUG    info_bg_color: #000000
Sat, 07 Dec 2019 14:46:52 DEBUG    info_fg_color: #000000
Sat, 07 Dec 2019 14:46:52 DEBUG    matching: fuzzy
Sat, 07 Dec 2019 14:46:52 DEBUG    sort_items: True
Sat, 07 Dec 2019 14:46:52 DEBUG    num_lines: 15
Sat, 07 Dec 2019 14:46:52 DEBUG    wait_for_sync: True
Sat, 07 Dec 2019 14:46:52 DEBUG    show_icons: True
Sat, 07 Dec 2019 14:46:52 DEBUG    icon_theme: breeze-dark
Sat, 07 Dec 2019 14:46:52 DEBUG    show_shortcuts: True
Sat, 07 Dec 2019 14:46:52 DEBUG    font_name: Mono 10
Sat, 07 Dec 2019 14:46:52 DEBUG    === --------------------------- ===
Sat, 07 Dec 2019 14:46:52 DEBUG    init_rofi.rofi_process.pre: <subprocess.Popen object at 0x7f0bf6c200d0>
Sat, 07 Dec 2019 14:46:52 DEBUG    init_rofi.rofi_process.post: <subprocess.Popen object at 0x7f0be6f7c550>
Sat, 07 Dec 2019 14:46:52 DEBUG    init_rofi.after  : 68441.360418468
Sat, 07 Dec 2019 14:46:52 DEBUG    get_layout.root  : 68441.364946147
Sat, 07 Dec 2019 14:46:52 DEBUG    get_layout.child : 68441.366958108
Sat, 07 Dec 2019 14:46:52 DEBUG    get_layout.child : 68441.367487516
Sat, 07 Dec 2019 14:46:52 DEBUG    get_layout.child : 68441.373362522
Sat, 07 Dec 2019 14:46:52 DEBUG    get_layout.child : 68441.385665305
Sat, 07 Dec 2019 14:46:52 DEBUG    get_layout.child : 68441.390146645
Sat, 07 Dec 2019 14:46:52 DEBUG    get_layout.child : 68441.393599214
Sat, 07 Dec 2019 14:46:52 DEBUG    get_layout.child : 68441.397686099
Sat, 07 Dec 2019 14:46:52 DEBUG    get_layout.child : 68441.399896786
Sat, 07 Dec 2019 14:46:52 DEBUG    get_layout.child : 68441.404455284
Sat, 07 Dec 2019 14:46:52 DEBUG    get_layout.child : 68441.407899576
Sat, 07 Dec 2019 14:46:52 DEBUG    get_layout.child : 68441.443517539
Sat, 07 Dec 2019 14:46:52 DEBUG    get_layout.child : 68441.472427514
Sat, 07 Dec 2019 14:46:52 DEBUG    get_layout.child : 68441.52428777
Sat, 07 Dec 2019 14:46:52 DEBUG    get_layout.child : 68441.528369891
Sat, 07 Dec 2019 14:46:52 DEBUG    get_layout.child : 68441.53122905
Sat, 07 Dec 2019 14:46:52 DEBUG    get_layout.child : 68441.535485962
Sat, 07 Dec 2019 14:46:52 DEBUG    get_layout.child : 68441.898510577
Sat, 07 Dec 2019 14:46:52 DEBUG    get_layout.child : 68441.901132177
Sat, 07 Dec 2019 14:46:52 DEBUG    get_layout.child : 68441.9072544
Sat, 07 Dec 2019 14:46:52 DEBUG    get_layout.child : 68441.914175311
Sat, 07 Dec 2019 14:46:52 DEBUG    get_layout.child : 68441.91749623
Sat, 07 Dec 2019 14:46:52 DEBUG    get_layout.child : 68441.959269384
Sat, 07 Dec 2019 14:46:52 DEBUG    get_layout.nested: 68441.959598135
Sat, 07 Dec 2019 14:46:54 DEBUG    menu_result: ""