need to be able to launch mintmenu from a dock

Bug #611240 reported by Fabounet
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Linux Mint
Won't Fix
Wishlist
Clement Lefebvre

Bug Description

Hi,
this is not really a bug, more a feature request.
MintMenu is good, but it's currently impossible to integrate it to any dock.
Most of the other Menus can be integrated though, like GnoMenu or Lancelot.

What is needed here is a way to pop up the menu at a given position.
I should not appear in a separate window.
Using Dbus is probably the easiest way to do, but an option in the binary could be a valid solution too.

Thanks for considering this feature !

Revision history for this message
Clement Lefebvre (clementlefebvre) wrote :

Hi,

Could you tell me more about the possible solution to this? At the moment it opens via bonobo in applet mode or using the run-in-window argument in a new window. Any details you could give us about this dbus solution would be appreciated.

Thanks.

Changed in linuxmint:
milestone: none → julia-rc1
assignee: nobody → Clement Lefebvre (clementlefebvre)
importance: Undecided → Wishlist
status: New → Incomplete
Revision history for this message
Fabounet (fabounet03) wrote : Re: [Bug 611240] Re: need to be able to launch mintmenu from a dock

Thanks for considering this feature.
I was thinking of a simple interface, a single method that would take the
(x,y) position on the screen and the orientation (so that it can be placed
correctly by the dock).
ShowMenu (int x, int y, int orientation)
possibly you could add
HideMenu ()
and a more complete variant : Show (int x, int y, int orientation, bool
window_mode, ...)

Orientation would be an enum corresponding to the
The orientation is needed because the dock doesn't know the dimensions of
the menu

all you need to do is to register a name on the bus (org.Mint.Menu for
instance) and provide these methods.
This means that :
- the process should be started with the session (so that it can register on
the bus and listen for clients calls),
or
- it should be launchable in the background by the dock (launched without
appearing, only the call through dbus makes it appear).

Fabounet.

2010/7/30 Clement Lefebvre <email address hidden>

> Hi,
>
> Could you tell me more about the possible solution to this? At the
> moment it opens via bonobo in applet mode or using the run-in-window
> argument in a new window. Any details you could give us about this dbus
> solution would be appreciated.
>
> Thanks.
>
> ** Changed in: linuxmint
> Milestone: None => julia-rc1
>
> ** Changed in: linuxmint
> Assignee: (unassigned) => Clement Lefebvre (clementlefebvre)
>
> ** Changed in: linuxmint
> Importance: Undecided => Wishlist
>
> ** Changed in: linuxmint
> Status: New => Incomplete
>
> --
> need to be able to launch mintmenu from a dock
> https://bugs.launchpad.net/bugs/611240
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in The Linux Mint Distribution: Incomplete
>
> Bug description:
> Hi,
> this is not really a bug, more a feature request.
> MintMenu is good, but it's currently impossible to integrate it to any
> dock.
> Most of the other Menus can be integrated though, like GnoMenu or Lancelot.
>
> What is needed here is a way to pop up the menu at a given position.
> I should not appear in a separate window.
> Using Dbus is probably the easiest way to do, but an option in the binary
> could be a valid solution too.
>
> Thanks for considering this feature !
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/linuxmint/+bug/611240/+subscribe
>

Revision history for this message
Clement Lefebvre (clementlefebvre) wrote :

Are you familiar with python? If so, would you give this a try?

Our source code is at http://github.com/linuxmint/mintmenu

You could fork our project using git, try your modifications and issue a pull request to us then after. Let me know if you're interested.

Clem.

Revision history for this message
Fabounet (fabounet03) wrote :

I know Python a bit, but I'm completely unfamiliar with your code, so it
would probably be much easier for you to do this feature than for me.

If Dbus is blocking you, this tutorial should help you to start with :
http://dbus.freedesktop.org/doc/dbus-python/doc/tutorial.html#exporting-objects

I propose myself to write a MintMenu applet for GLX-Dock once you've
implemented the Dbus method.

Fabounet.

2010/7/31 Clement Lefebvre <email address hidden>

> Are you familiar with python? If so, would you give this a try?
>
> Our source code is at http://github.com/linuxmint/mintmenu
>
> You could fork our project using git, try your modifications and issue a
> pull request to us then after. Let me know if you're interested.
>
> Clem.
>
> --
> need to be able to launch mintmenu from a dock
> https://bugs.launchpad.net/bugs/611240
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in The Linux Mint Distribution: Incomplete
>
> Bug description:
> Hi,
> this is not really a bug, more a feature request.
> MintMenu is good, but it's currently impossible to integrate it to any
> dock.
> Most of the other Menus can be integrated though, like GnoMenu or Lancelot.
>
> What is needed here is a way to pop up the menu at a given position.
> I should not appear in a separate window.
> Using Dbus is probably the easiest way to do, but an option in the binary
> could be a valid solution too.
>
> Thanks for considering this feature !
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/linuxmint/+bug/611240/+subscribe
>

Revision history for this message
Clement Lefebvre (clementlefebvre) wrote :

Thanks. I'll give it a try for Mint 10.

Changed in linuxmint:
status: Incomplete → Confirmed
Changed in linuxmint:
milestone: julia-rc1 → julia-stable
Changed in linuxmint:
milestone: julia-stable → k...a-rc1
Revision history for this message
Fabounet (fabounet03) wrote :

any news on it ?
it's a pity MintMenu can't be launched from any dock ...

Revision history for this message
Eric Ding (ericding-alum) wrote :

I just installed the package written by neelance to make MintMenu available as an AWN applet. However, as he notes in a comment on his ppa, the applet can sometimes take a really long time to start up. I think I've figured out why: when his code imports the MenuWin class from mintMenu, python gets hung up for a long time on the top-level call to gnomeapplet.bonobo_factory().

To make mintMenu friendlier for this kind of use, could you just make a simple change to the code, checking that __name__ == "__main__"? Doing so resolves the delay in mintMenuAwn, without effecting mintMenu's use with gnome-panel or as a standalone window; I've attached a patch that makes this change. Thanks!

Revision history for this message
chemicalfan (mike-lumsden) wrote :

Has this been completed yet? If not, I might suggest that OP is no longer interested, nearly 4 years down the line...

Changed in linuxmint:
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.