You are not logged in.

#1 2010-08-10 07:09:05

eDio
Member
From: Ukraine, Kyiv
Registered: 2008-12-02
Posts: 422

plasma-globalmenu(-mod) — GTK global menu for Xbar in KDE

I've found post on blog where xbar is said to support gtk applications.
Unfortunately, some tool from kde trunk is needed.

Tool is avaliable through svn there
svn://anonsvn.kde.org/home/kde/trunk/playground/base/plasma/globalmenu

Also sources can be watched on websvn
http://websvn.kde.org/trunk/playground/ … globalmenu

Please, provide PKGBUILD or help me to make it by myself.
I can't build package, as there is no any info in readme on this. And I believe, a lot of kde stuff is needed to build it.

Last edited by eDio (2010-08-21 06:53:33)

Offline

#2 2010-08-10 07:33:11

flamelab
Member
From: Athens, Hellas (Greece)
Registered: 2007-12-26
Posts: 2,160

Re: plasma-globalmenu(-mod) — GTK global menu for Xbar in KDE

It's easy. Go to aur, find on the "kde" category any -svn package (PKGBUILD) (especially the popular ones who should be properly edited), download it, the change "pkgname", pkgdesc, the svn url (that will point to the one you want) and... practically you have done most of the work that needs to be done. Then try makepkg and change any cmake options in the build() function.

Offline

#3 2010-08-10 07:52:11

eDio
Member
From: Ukraine, Kyiv
Registered: 2008-12-02
Posts: 422

Re: plasma-globalmenu(-mod) — GTK global menu for Xbar in KDE

Thank you, seems to work wink I've done this

cmake -DCMAKE_BUILD_TYPE=debugfull -DCMAKE_INSTALL_PREFIX=/usr
make
make install

and have built and installed this tool successfully. The only issue: pacman doesn't know anything about this package.

Last edited by eDio (2010-08-10 07:52:25)

Offline

#4 2010-08-10 08:21:27

flamelab
Member
From: Athens, Hellas (Greece)
Registered: 2007-12-26
Posts: 2,160

Re: plasma-globalmenu(-mod) — GTK global menu for Xbar in KDE

What do you mean ?

I don't think you did anything outside the PKGBUILD? I mean cmake and install manually ?

Do you know how to make Archlinux packages through makepkg ?

Last edited by flamelab (2010-08-10 08:22:43)

Offline

#5 2010-08-10 08:42:05

eDio
Member
From: Ukraine, Kyiv
Registered: 2008-12-02
Posts: 422

Re: plasma-globalmenu(-mod) — GTK global menu for Xbar in KDE

Yes, I know, how to make packages through makepkg.
But I was a bit curious and lazy and made what I made outside pkgbuild, just to try.
Later I'll do it in right way (it installs only one binary file, so it is not a big deal to clean my system).

By the way, thank you for shaming me smile In other way, I would leave things as is.

Offline

#6 2010-08-10 09:14:10

Lothium
Member
Registered: 2009-10-10
Posts: 192

Re: plasma-globalmenu(-mod) — GTK global menu for Xbar in KDE

So now it would be great, if you provide this package in AUR smile...

Best Regards!

Offline

#7 2010-08-10 09:22:45

KlavKalashj
Member
Registered: 2008-10-09
Posts: 376

Re: plasma-globalmenu(-mod) — GTK global menu for Xbar in KDE

+1 for putting it in AUR! smile Is it style-independent now, or do we still need to use Bespin?

Offline

#8 2010-08-10 09:33:45

eDio
Member
From: Ukraine, Kyiv
Registered: 2008-12-02
Posts: 422

Re: plasma-globalmenu(-mod) — GTK global menu for Xbar in KDE

I'm just playing around it.
Yes, it needs bespin, as it needs Xbar. But qtcurve also supports Xbar now.

The only "little" problem with this app is that gtk applications still don't have global menu sad It, obviously, needs some playing around to make it work.

Now I'm going to make source package for AUR.

Offline

#9 2010-08-10 09:44:54

eDio
Member
From: Ukraine, Kyiv
Registered: 2008-12-02
Posts: 422

Re: plasma-globalmenu(-mod) — GTK global menu for Xbar in KDE

I'm not an experienced AUR contributor, so tell me please if pkgbuild needs modification.
Pkg is plasma-globalmenu.
Binary file to run is globalmenu.
See http://qiacat.blogspot.com/2009/03/gnom … -kde4.html for details.

Offline

#10 2010-08-10 10:23:08

flamelab
Member
From: Athens, Hellas (Greece)
Registered: 2007-12-26
Posts: 2,160

Re: plasma-globalmenu(-mod) — GTK global menu for Xbar in KDE

eDio wrote:

I'm not an experienced AUR contributor, so tell me please if pkgbuild needs modification.
Pkg is plasma-globalmenu.
Binary file to run is globalmenu.
See http://qiacat.blogspot.com/2009/03/gnom … -kde4.html for details.

The PKGBUILD is nice smile I'll try it

eDio wrote:

By the way, thank you for shaming me smile In other way, I would leave things as is.

...Shame you ? What do you mean ? O_o

Last edited by flamelab (2010-08-10 10:24:30)

Offline

#11 2010-08-10 10:58:36

eDio
Member
From: Ukraine, Kyiv
Registered: 2008-12-02
Posts: 422

Re: plasma-globalmenu(-mod) — GTK global menu for Xbar in KDE

...Shame you ? What do you mean ? O_o

Maybe it's just my English. I didn't mean nothing bad.

I don't think you did anything outside the PKGBUILD?

And that was actually what I've done, so I was a little ashamed and confused... smile
Maybe that was a little sharp word to describe my emotions. So, it's just my English, never mind.

Offline

#12 2010-08-10 13:38:46

eDio
Member
From: Ukraine, Kyiv
Registered: 2008-12-02
Posts: 422

Re: plasma-globalmenu(-mod) — GTK global menu for Xbar in KDE

Ok, looks, like I made it to work.
Short howto:
1. Install plasma-globalmenu
2. Install gnome-globalmenu
3. to your ~/.bashrc add

export GTK_MODULES=globalmenu-gnome

4. do from root

$ cd /usr/lib/gtk-2.0/modules
$ ln -s libglobalmenu-plugin.so libglobalmenu-gnome.so

You should get smthng like this
snapshot1g.th.png

edit:
Forgot to say, you should run globalmenu, of course wink It is a helper application, which notifies xbar, when GTK application is selected.

Last edited by eDio (2010-08-10 13:58:17)

Offline

#13 2010-08-16 16:38:36

eDio
Member
From: Ukraine, Kyiv
Registered: 2008-12-02
Posts: 422

Re: plasma-globalmenu(-mod) — GTK global menu for Xbar in KDE

Added patch, which fixes accelerators in GTK menus. I'm not a programmer, so patch may be imperfect. But it works, and result looks much better, than before.
It would be great though, if some C++ developer take this project, if it's possible, as project seems to be dead.
menuka.png

Last edited by eDio (2010-08-16 17:34:01)

Offline

#14 2010-08-19 23:23:42

eDio
Member
From: Ukraine, Kyiv
Registered: 2008-12-02
Posts: 422

Re: plasma-globalmenu(-mod) — GTK global menu for Xbar in KDE

Check this new package please.
http://aur.archlinux.org/packages.php?ID=40048

It is modification of globalmenu.
Read more.

Offline

#15 2010-08-20 09:51:39

Lothium
Member
Registered: 2009-10-10
Posts: 192

Re: plasma-globalmenu(-mod) — GTK global menu for Xbar in KDE

Yeah... this sounds great. Searched for something like this for a long time, cause I use bespin XBar very long and now I can also use gtk windows with it. Thank you for providing this package!

Best regards!

Offline

#16 2010-08-20 10:19:35

eDio
Member
From: Ukraine, Kyiv
Registered: 2008-12-02
Posts: 422

Re: plasma-globalmenu(-mod) — GTK global menu for Xbar in KDE

Lothium,
I hope, you've picked *-mod variant, as the original one, even with my clumsy patch, is not very good. Mod still lacks icons in menu entries and some other featuers, but it is the best solution available now.

BTW, what I should to do with the original package? I would not recommend it to anyone, as there is much better variant now. Should I delete it in some way, or just leave it as is and update when needed?

Offline

#17 2010-08-21 06:42:31

eDio
Member
From: Ukraine, Kyiv
Registered: 2008-12-02
Posts: 422

Re: plasma-globalmenu(-mod) — GTK global menu for Xbar in KDE

Version 0.15 is out.
Now GTK menu disappears, when GTK app is minimized or closed.

BTW, application is under active development, there were few essential fixes made in one day. So if you interested in this application, check for new version frequently.

Also, I won't be able to update package for the next week. You still can check for new versions directly on kde-apps.org and modify pkgbuild from AUR by yourself.

Offline

#18 2010-11-09 22:05:43

eDio
Member
From: Ukraine, Kyiv
Registered: 2008-12-02
Posts: 422

Re: plasma-globalmenu(-mod) — GTK global menu for Xbar in KDE

Now plasma-globalmenu-mod supports icons for gtk applications. Not all icons are displayed correctly right now, but at least checkable items are working as expected
201011092353241280x1024.th.png
More details here
http://kde-apps.org/content/show.php/GlobalMenu+Mod+(+Enable+Gnome+%2B+GTK`s+)?action=content&content=129006

Updated package plasma-globalmenu-mod will be uploaded to AUR in few minutes.
Author didn't change package version so I will change only the build number.

Offline

Board footer

Powered by FluxBB