Package Details: java-swing-globalmenu 165-5

Git Clone URL: https://aur.archlinux.org/java-swing-globalmenu.git (read-only)
Package Base: java-swing-globalmenu
Description: Globalmenu support for swing
Upstream URL: http://code.google.com/p/java-swing-ayatana
Licenses: MIT
Submitter: Thaodan
Maintainer: Thaodan
Last Packager: Thaodan
Votes: 5
Popularity: 0.000000
First Submitted: 2013-01-29 01:55
Last Updated: 2015-06-13 16:21

Latest Comments

kuba77 commented on 2015-10-05 17:22

I can't install it. http://pastebin.com/QLjNeL84

flying-sheep commented on 2014-01-29 16:11

v2.0 was released. maybe this one will be usable!

arch-narf commented on 2013-09-06 11:29

In kde appmenu you have to double-click each menu once to make the submenu visible. However the submenus are quite unusable. Nothing happens if you click on a entry.

tubal-cain commented on 2013-07-11 03:34

I cannot see menus on kde appmenu. It only shows white submenus.

Thaodan commented on 2013-04-07 20:16

I made a patch that it tests for $UBUNTU_MENUPROXY == libappmenu.so instead of $XDG_CURRENT_DESTOP == Unity see: http://code.google.com/p/java-swing-ayatana/issues/detail?id=16

Thaodan commented on 2013-04-07 19:36

Yes we need to remove line 84-85 or better improve it so that it detects globalmenu.

flying-sheep commented on 2013-04-07 19:24

then i think we need to patch this function:

http://code.google.com/p/java-swing-ayatana/source/browse/trunk/jayatana/src/org/java/ayatana/AyatanaDesktop.java#79

(as we don’t want it to work only on unity)

Thaodan commented on 2013-04-07 19:16

It will fix that you need to set $UBUNTU_MENUPROXY (see below why), but it will not fix the second. I think it tries to detect Unity and not the Globalmenu itself.

flying-sheep commented on 2013-04-07 19:11

ah, thanks. that seemingly was added after i fixed the rest. building now.

will that fix both the need to set $UBUNTU_MENUPROXY and to call java with -Dayatana.force=true?

Thaodan commented on 2013-04-07 19:06

See https://aur.archlinux.org/packages/appmenu-gtk

flying-sheep commented on 2013-04-07 19:02

umm, appmenu-gtk{,2,3} doesn’t seem to exist…

Thaodan commented on 2013-04-06 11:46

You had to install appmenu-gtk3 or appmenu-gtk2 wich set this setting in /etc/profile.d/80appmenu.sh or in /etc/profile.d/80appmenu-gtk3.sh

Thaodan commented on 2013-04-06 11:31

Thanks I'll add it.

flying-sheep commented on 2013-04-06 11:28

eureka!

in order for it to “work”, one also needs to set the environment variable $UBUNTU_MENUPROXY to "libappmenu.so"!

unfortunately, it doesn’t really work then: the root menu gets displayed, but submenus only work on the second try, subsubmenus don’t work at all, and clicking on things doesn’t work either.

flying-sheep commented on 2013-04-06 00:10

so i fixed the build, but it doesn’t seem to work:

are there things missing or what’s wrong?

https://gist.github.com/flying-sheep/5323616

flying-sheep commented on 2013-04-05 23:14

please add a makedepend for "lsb-release", as the build needs the file /etc/lsb-release.

flying-sheep commented on 2013-04-05 22:50

doesn’t build:

getubuntuversion tries to read "/etc/lsb-release" which doesn’t exist here…

Thaodan commented on 2013-02-24 21:38

I won't use sudo for this since its insecure, running 'ant install' in fakeroot wont work. I need to mod build.xml to fix that but idk.

s4ncho commented on 2013-02-24 21:11

thanks, but unfortunately I got some problems during installation (on jre6 - but now I'm not sure if that can be done).

First of all (unfortunately) it requires "sudo" during build, since it has to create some files in java_home directory.
I think it also needs libxt (as they say in homepage).

On packaging stage I get couple problems like :
[javac] /var/abs/local/yaourtbuild/java-swing-globalmenu/src/jayatana/jayatana/plugins/jayatanart6/src/com/sun/java/swing/plaf/gtk/GTKLookAndFeel.java:47: cannot find symbol
[javac] symbol : class OSInfo
[javac] location: package sun.awt

googling a while seems to find OSInfo in opendjdk7:\ so no luck with jre/jdk6

Thaodan commented on 2013-02-22 22:56

I try to fix this but I don't know to fix the install stuff, I added libunity as depency and it builds now. But I don't know to avoid the Ubuntisms in build.xml

Thaodan commented on 2013-02-22 22:25

Fixed PKGBUILD I had to set platforms.JDK_1.6.home=/usr/lib/jvm/java-7-openjdk

s4ncho commented on 2013-02-22 22:09

according to homepage and build.xml it could also be build on jre6.
to start working (after removing java7 deps) I'd to replace line
ant \
with:
ant -Dplatforms.JDK_1.6.home=/opt/java6 \
but after while I get another problem:
[exec] Package unity was not found in the pkg-config search path.
[exec] Perhaps you should add the directory containing `unity.pc'
[exec] to the PKG_CONFIG_PATH environment variable
[exec] No package 'unity' found
[exec] Package unity was not found in the pkg-config search path.
[exec] Perhaps you should add the directory containing `unity.pc'
[exec] to the PKG_CONFIG_PATH environment variable
[exec] No package 'unity' found

Any help appreciated.