psifidotos / applet-window-appmenu

Plasma 5 applet in order to show the window appmenu
GNU General Public License v2.0
422 stars 33 forks source link

Appmenu not showing for any application #53

Closed joeknock90 closed 5 years ago

joeknock90 commented 5 years ago

Arch Linux Plasma 5.15.3 X11

Global Menu does work, but this applet does not.

Screenshot_20190321_063703

It shows that the widget is there when editing the panel, but does not snow any options for any applications (QT, GTK or otherwise)

I have no idea where to even start with logs.

psifidotos commented 5 years ago

you need to search the internet how to enable global menus for Plasma....

has nothing to do with this applet, your system is not configured properly... so you have the same issue with all applets that are trying to show app menu for applications

joeknock90 commented 5 years ago

The default global menu works perfectly fine. It is just window-appmenu that isn't working.

I have tried this from a completely new user home directory.

psifidotos commented 5 years ago

what is your interface ? Have you removed all plasma panels?

psifidotos commented 5 years ago
  1. how did you install appmenu?
joeknock90 commented 5 years ago

using latte-dock-git from AUR. Also tried latte-dock stable from repositories.

Also appmenu-git from AUR. Tried the non-git version as well. I probably should have thought of building that myself first. Sorry. Should I try that?

psifidotos commented 5 years ago

Sorry. Should I try that?

there is a chance that the AUR version is built with different frameworks version. Please try it in order to be sure that this is not the reason...

  1. Dont forget to relogin after you have reinstalled window appmenu
  2. Make sure to test with new created windows after Latte has been loaded
joeknock90 commented 5 years ago

Will do. I'll report back shortly. Thanks!

joeknock90 commented 5 years ago

Same issue. Removed plasma5-applets-window-appmenu-git with pacman -Rns plasma5-applets-window-appmenu-git seemed to remove properly.

Built from cloned repo.

joeknock90 commented 5 years ago

Curiously using the built in global menu SOMETIMES crashes latte-dock.

psifidotos commented 5 years ago

the built in global menu SOMETIMES crashes latte-dock.

it has happened to me also in the past but after a while stopped... no idea what was the reason...

Same issue.

  1. Have you removed all plasma panels?
  2. Are you sure that the only one applet instance requesting to handle the global menu is the window appmenu?
  3. Can you provide me your Latte layout to check it out?
joeknock90 commented 5 years ago
  1. Yes
  2. Yes, doing from a brand new user profile to make sure
  3. I have to run to work but I'll try to ssh in and grab it. Might take me a bit.

Thanks again!

joeknock90 commented 5 years ago

Extended.layout.latte.txt

psifidotos commented 5 years ago
  1. What is your Latte version?
  2. If you close Latte and add the window appmenu in a plasma panel still no results?
joeknock90 commented 5 years ago
  1. lattedock 0.8.75
  2. Yep, same thing. window-appmenu does not show anything in a regular panel.

Just for funzies I threw arch linux up in a VM brand new and installed everything and I'm getting the same result.

trmdi commented 5 years ago

@psifidotos Try $ plasmawindowed org.kde.windowappmenu from Konsole I see this, not sure if it relates, but it should be fixed:

~ ❯ plasmawindowed org.kde.windowappmenu
org.kde.plasmaquick: Applet preload policy set to 1
kf5.kpackage: Path traversal attempt detected: "/usr/share/kservices5/plasma-applet-org.kde.windowappmenu.desktop" is not inside "/usr/share/plasma/plasmoids/org.kde.windowappmenu/"
org.kde.plasma: requesting config for "Window AppMenu" without a containment!
qml: 0
file:///usr/share/plasma/shells/org.kde.plasma.desktop/contents/configuration/AppletConfiguration.qml:283:25: QML StackView: Binding loop detected for property "height"
file:///usr/share/plasma/plasmoids/org.kde.windowappmenu/contents/ui/config/ConfigGeneral.qml:95: ReferenceError: inFillChk is not defined
joeknock90 commented 5 years ago

Screenshot_20190322_062101 same thing

psifidotos commented 5 years ago
  1. If you add the plasma global menu in Latte does it show correctly?
  2. At window appmenu if you enable/disable some of the filters in its settings does it make any difference?
joeknock90 commented 5 years ago
  1. Yes, Global menu shows correctly, however using it crashes latte-dock about 50% of the time

  2. There doesn't seem to be a combination of filters that allows it to work. I've tried Each of them individually and in combination.

I'm also noticing that latte-dock isn't saving my config on logout sometimes, giving me the notification that it did not close properly, through few logouts i needed to now remove the global menu again, kill latte-dock, start it back up, and then I could log out and back in without it re-adding the widget.

psifidotos commented 5 years ago

@trmdi

file:///usr/share/plasma/plasmoids/org.kde.windowappmenu/contents/ui/config/ConfigGeneral.qml:95: ReferenceError: inFillChk is not defined

fixed in last commit

psifidotos commented 5 years ago

@joeknock90 please send also your env output

joeknock90 commented 5 years ago

env.txt

psifidotos commented 5 years ago

Disabling screen filtering does it help?

joeknock90 commented 5 years ago

Not sure what you mean by screen filtering

psifidotos commented 5 years ago

Not sure what you mean by screen filtering

in the settings there is an option to Filter by screen

psifidotos commented 5 years ago

important question: in your Latte panel do you have a latest WindowTitleApplet?

psifidotos commented 5 years ago

and one more thing... can you send your latte layout files to test them in my system?

signalrunn3r commented 5 years ago

Same problem here. latte-dock, WindowAppMenu and WindowAppTitle, all in git fashion installed as AUR builds. mylayout.layout.latte.tar.gz

psifidotos commented 5 years ago

if you try to use v0.3 do you have the same issue?

signalrunn3r commented 5 years ago

if you try to use v0.3 do you have the same issue?

Yes sir. Same problem.

What I find really rare, it's that I just downgraded latte-dock, appmenu and window-title to their non-git versions and the issue persist.

joeknock90 commented 5 years ago

Screeen filtering disabled. Still no go.

I do have the latest Window Title applet also, as well as the latest window button applet.

Extended.layout.latte.txt

This is the layout I've been using. Copied straight from my home folder.

psifidotos commented 5 years ago

If I cant manager to reproduce I cant provide a patch, unfortunately I havent managed to reproduce yet in my system

joeknock90 commented 5 years ago

I totally understand that. I'll try to keep diging. It's probably an Arch problem in some way.

DrDoctor13 commented 5 years ago

This is happening to me as well. Using latest git builds and using Plasma's Global Menu crashes Latte. Dr Konqi managed to trigger on one of them and this is what it could give me:

https://pastebin.com/70rrX8Dg

psifidotos commented 5 years ago

@DrDoctor13 not showing and crash are different issues, please open a NEW issue for the crash from plasma globalmenu

DrDoctor13 commented 5 years ago

I'm saying the exact same things that are happening to @joeknock90 are happening to me. The appmenu menus are not showing at all, and trying to use Global Menu crashes Latte. Applications act as if a menu applet is being used when Appmenu is added to Latte, but it still does not appear.

michaldybczak commented 5 years ago
1. lattedock 0.8.75

Just for funzies I threw arch linux up in a VM brand new and installed everything and I'm getting the same result.

Maybe latte from repo is no longer compatible with appmenu-git. I use latte-dock-git and latte extensions are also in git and it all works well. Try to switch to latte-dock-git, make sure all extensions are in git as well and reinstall them to the newest versions.

psifidotos commented 5 years ago

Maybe latte from repo is no longer compatible with appmenu-git.

it is not the case because in Latte Edit mode the AppMenu is shown correctly. My guess is that something has changed at Arch underlying libraries that creates that faulty behavior. It is one of those bad bugs that only way to be understood is to use a VM and reproduce.. I am just hoping that someone should step in and play with it in qml level. If for some time noone tries something when I find some spare time from Latte development I will look into it.

petsam commented 5 years ago

I have a strange dual-monitor+dual-gpu setup. I thought I should mention, in case it has a possible effect. I am struggling the last couple of days to make AppMenu work, no positive results. I even installed and used ddd but I don't follow what should I do with the messages.

I also get some journal messages, should I post any and what? I have changed all theming to default (breeze etc), worked with other user accounts. The same happens.

What package versions or system setup could we start posting, for comparing ?

trmdi commented 5 years ago

@Zren uses Manjaro. Can you reproduce this bug?

psifidotos commented 5 years ago

No idea, debugging this needs a programmer in order to identify which part of the code does not work properly and why. This issue appears to be Arch specific, in Manjaro is still everything working OK.

I have not time this period in order to install Arch in VM and test out what is going on, so in my side it will have to wait.

trmdi commented 5 years ago

I also want to mention @antonio-rojas here, in case you could help to debug this.

DrDoctor13 commented 5 years ago

@psifidotos I'm using Manjaro with this same issue

petsam commented 5 years ago

I am also on Manjaro. I added Plasma Global Menu and it is working fine. Still latte appmenu does not..

latte-dock-git 0.7.96.r648.g08ec6908-1
plasma5-applets-window-appmenu-git 0.4.r0.gff4dd59-1
plasma5-applets-window-buttons-git 0.3.r0.g38326ed-1
plasma5-applets-window-title-git 0.4.r0.gc22dc82-1

plasma-desktop 5.15.3-1 (plasma)
plasma-framework 5.56.1-3.1 (kf5)
plasma-workspace 5.15.3-2 (plasma)
psifidotos commented 5 years ago

in that case the issue influences all Arch derivatives...

Zren commented 5 years ago

@trmdi: this widget works fine in my Manjaro setup.

Installed git master and ran install.sh. Using plasmoidviewer (part of the plasma-sdk package):

plasmoidviewer -a org.kde.windowappmenu -l topedge -f horizontal -c org.kde.panel

Opened a new dolphin window, and focused on it. Then pressed Alt+H to get:

2019-03-27___12-47-03

Did I need to test in latte-dock?

signalrunn3r commented 5 years ago

@Zren I don't know how conclusive is that...

Anyway, which Manjaro branch are you on? Because if you are in stable instead of testing or unstable, maybe the offending package or library in cuestion haven't reach you downstream yet.

Zren commented 5 years ago

I'm on Manjaro Stable. If it's a broken package, then I guess I can test after the next manjaro update. My install is far from a clean room test though.

joeknock90 commented 5 years ago

@Zren

I can't replicate what you did. I uninstalled the AUR git versions of window-title, appmenu, and window-buttons (just to be safe) and installed using the git repo install script.

I ran plasmoidviewer -a org.kde.windowappmenu -l topedge -f horizontal -c org.kde.panel

and it doesn't come up for me.

psifidotos commented 5 years ago

@joeknock90 please send your env output

joeknock90 commented 5 years ago

This is a brand new home folder.

env.txt