kotelnik / plasma-applet-active-window-control

Plasma 5 applet for controlling currently active window.
GNU General Public License v2.0
119 stars 18 forks source link

Can't get global menu on Plasma 5.12 #137

Open fliperama00 opened 6 years ago

fliperama00 commented 6 years ago

I tried every setting in the applet but can't handle the global menu to show up.

krushndayshmookh commented 6 years ago

me too. no global menu on plasma 5.12

krushndayshmookh commented 6 years ago

used latest git version too

lugeha commented 6 years ago

Same here, using latest source from phabricator. This is the error from .xsession errors when you try to enable it

qml: initializing appMenuModel...
qml: appMenuModel failed to initialize: Error: Qt.createQmlObject(): failed to create object:
file:///usr/share/plasma/plasmoids/org.kde.activeWindowControl/contents/ui/inline:1:89: module "org.kde.private.activeWindowControl" is not installed
qml: initializing appmenu...DONE null

This is where it's failing, https://github.com/kotelnik/plasma-applet-active-window-control/blob/501bc3b87f1721ad947b40ae41277be9e7e5aa0e/package/contents/ui/AppMenu.qml#L130

As I've never written a line of KDE/Qt5/Plasma, that's as far as I can go.

kvnxiao commented 6 years ago

I'm getting the same issue. On latest git version of Active Window Control from kde's cgit.

kvnxiao commented 6 years ago

An update: seems to not work with the default plasma panel bar. The global context menu does work with a Latte Dock panel however, which is what I switched to using.

trmdi commented 6 years ago

Do you use Plasma Wayland or X?

kvnxiao commented 6 years ago

@trmdi X

ahmed-h-ayyad commented 6 years ago

this should be mentioned in the description or FAQ! screenshot_20180630_222335

iwex commented 5 years ago

Any news regarding this issue?

IgnusG commented 5 years ago

I think I just had to install it from the aur and then it worked - I think Arch's AUR repo pulls from master

iwex commented 5 years ago

@IgnusG I've installed it directly from git - but with no success

trmdi commented 5 years ago

@iwex What distro do you use?

iwex commented 5 years ago

@trmdi manjaro 17.1

trmdi commented 5 years ago

@iwex Can you try creating a new user, then add the widget from the AUR package? (Not the one from KDE store)

iwex commented 5 years ago

@trmdi no changes

trmdi commented 5 years ago

@iwex Can you run this command: plasmawindowed org.kde.activeWindowControl ? Then right click on the window opened by that command > Configure > Application Menu > Enable And see what it says in the terminal? Remember to focus on Konsole before hovering the mouse over the Active Widget Control window.

iwex commented 5 years ago

@trmdi hmm, very strange, but i have application menu in that opened window. image

trmdi commented 5 years ago

@iwex Did you enable the App menu for the widget on the Plasma panel?

iwex commented 5 years ago

@trmdi yes :)

Also it works in Latte Dock, but not in default panel...

iwex commented 5 years ago

@trmdi 9/28/18 12:32 PM plasmashell file:///usr/share/plasma/plasmoids/org.kde.activeWindowControl/contents/ui/AppMenu.qml:161: Error: Cannot assign QObject to AppMenuModel In journald

iwex commented 5 years ago

@trmdi hmm, now works in panel...

trmdi commented 5 years ago

@iwex Congrats! What did you do?

iwex commented 5 years ago

@trmdi idk, i've compiled it from aur and then logged out. But it didn't help. After some time I rebooted my computer and now it works..

trmdi commented 5 years ago

Hmm.. sound like a cache issue. Anyone else should try removing all the caches if you still can't make it run. Good luck. :D

lugeha commented 5 years ago

It's started working for me too. I just rebuild the phabricator version (what Arch AUR uses).

I didn't do anything, code hasn't been updated. Perhaps there was an underlying issue with plasma.

krushndayshmookh commented 5 years ago

Hmm.. sound like a cache issue. Anyone else should try removing all the caches if you still can't make it run. Good luck. :D

please tell how to do that?

iwex commented 5 years ago

@krushndayshmookh just install it from AUR, or if you don't have arch based distro - use https://phabricator.kde.org/source/plasma-active-window-control/ this repo (all instructions in INSTALL file)

trmdi commented 5 years ago

Hmm.. sound like a cache issue. Anyone else should try removing all the caches if you still can't make it run. Good luck. :D

please tell how to do that?

First, you have to be sure that you're using the latest version in the phabricator page. Then, if it still doesn't work, try removing the widget on the panel, then removing all the cache in ~/.cache, then relogin and add it again and configure the widget to enable the App Menu.

lugeha commented 5 years ago

Fresh install, it's happening again.

qml: appMenuModel failed to initialize: Error: Qt.createQmlObject(): failed to create object: file:///usr/share/plasma/plasmoids/org.kde.activeWindowControl/contents/ui/inline:1:89: module "org.kde.private.activeWindowControl" is not installed

matiux commented 5 years ago

I'm on Debian buster with kde 5.13.5, X and latte dock but global menu doesn't work I have already try to clear ~/.cache folder but don't solve the problem.

I have try to install the widget from kde and also from https://phabricator.kde.org/source/plasma-active-window-control/repository/master/ but the result doen't change

screenshot_20181115_010547

screenshot_20181115_010838 screenshot_20181115_010928

trmdi commented 5 years ago

@matiux You could use the stock Global menu in combination with psifidotos/applet-window-title and psifidotos/applet-window-buttons. They're much better.

matiux commented 5 years ago

@trmdi thanks. While the two widget that you're talking about I know them, where can I find the "stock global menu"?

UPDATE Ok @trmdi , I have found the stock global menu in the default widgets list. Basically it works but the applications that I use more like PhpSttorm, Visual Studio Code, IntellijIdea ecc doesn't work. I have read about a project named Jayatana for this kind of programms. Do you know it?

trmdi commented 5 years ago

@matiux

psifidotos has forked Global menu widget, named applet-window-appmenu , you can try that and make a new issue in his Github repo if you want.

jakiw commented 5 years ago

I am also on Manjaro and installed the git version from the AUR. Neither the plasma dock nor the Latte dock show the application menu. Restarting also did not help.