Bug 493610

Summary: Smb4k missing menu when using Wayland
Product: [Applications] Smb4k Reporter: Steve <contact>
Component: generalAssignee: Alexander Reinholdt <alexander.reinholdt>
Status: RESOLVED NOT A BUG    
Severity: normal CC: contact
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: smb4k on Wayland with NO menu
smb4k on x11 with menu

Description Steve 2024-09-24 23:22:08 UTC
SUMMARY
When running under Wayland smb4k does not display a menu in the global menu widget. If the widget is removed then the app does not fallback to displaying in it's own window.
This behavior is not present under x11.

STEPS TO REPRODUCE
1. Boot into KDE Plasma 6.1 on Wayland
2. Launch Smb4k

OBSERVED RESULT
No menu is present

EXPECTED RESULT
Either the global menu, or application menu are present

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux (6.10.10-arch1-1 (64-bit))
KDE Plasma Version: 6.1.5
KDE Frameworks Version:  6.6.0
Qt Version:  6.7.2
Comment 1 Steve 2024-09-24 23:23:08 UTC
Created attachment 174050 [details]
smb4k on Wayland with NO menu

Attaching image of the issue on Wayland
Comment 2 Steve 2024-09-24 23:24:00 UTC
Created attachment 174051 [details]
smb4k on x11 with menu

Attaching image of x11 where the menu appears as expected
Comment 3 Steve 2024-09-24 23:37:23 UTC
Output from syslog:

Sep 24 23:56:47 2b systemd[11282]: Started Smb4K - Advanced Network Browser for SAMBA.
Sep 24 23:56:47 2b kded6[11447]: org.kde.plasma.appmenu: Got an error
Sep 24 23:56:47 2b kded6[11447]: org.kde.plasma.appmenu: Got an error
Sep 24 23:56:48 2b smb4k[13181]: kf.windowsystem: Could not find any platform plugin
Sep 24 23:56:48 2b kded6[11447]: Registering ":1.87/StatusNotifierItem" to system tray
Comment 4 Steve 2024-09-24 23:46:35 UTC
Disregard - reading a similar bug (492437) I realized that I was missing two packages after a fresh install:

* plasma5-integration
* kwayland5
Comment 5 Alexander Reinholdt 2024-09-25 15:19:14 UTC
(In reply to Steve from comment #4)
> Disregard - reading a similar bug (492437) I realized that I was missing two
> packages after a fresh install:
> 
> * plasma5-integration
> * kwayland5

Thanks for the information. However, it's strange that you need Plasma 5 packages for this to work ...
Comment 6 Steve 2024-09-25 17:27:36 UTC
Yes I'm unsure exactly why they were needed, but I'm pretty new KDE so perhaps there's some information I'm missing.
I thought the plasma5 packages were only needed for older QT applications and some GTK outliers.