Skip to content

linux: GlobalMenu: only if UBUNTU_MENUPROXY is set - #699

Merged
zcbenz merged 1 commit into
electron:masterfrom
matttbe:globalmenu
Oct 13, 2014
Merged

zcbenz merged 1 commit into
electron:masterfrom
matttbe:globalmenu

Conversation

@matttbe

@matttbe matttbe commented Oct 12, 2014

Copy link
Copy Markdown
Contributor

Hello,

When checking if we should react differently when GlobalMenu bar is used, we should check if UBUNTU_MENUPROXY env var is (correctly) set instead of checking if we're using Unity on a Unity session.

It's maybe better to do that because we can use Compiz on a Unity session without Unity. Or we can also use Unity in a different session.

Note that I was not able to test this new code (sorry for that) but when I'm using Atom on Ubuntu with a Cairo-Dock session and Unity is not running, Atom window doesn't have any menu.

A few details about my system:

$ echo $DESKTOP_SESSION    
cairo-dock
$ ps aux | grep "[l]ibappmenu"
$ echo $UBUNTU_MENUPROXY   

$ echo $XDG_CURRENT_DESKTOP
Unity

Atom on a Cairo-Dock session

On an Ubuntu session, we have something like that:

$ echo $DESKTOP_SESSION    
ubuntu
$ ps aux | grep "[l]ibappmenu"
(...)
$ echo $UBUNTU_MENUPROXY   
libappmenu.so
$ echo $XDG_CURRENT_DESKTOP
Unity

Regards,

Matt

When checking if we should react differently when GlobalMenu bar is
used, we should check if UBUNTU_MENUPROXY env var is (correctly) set
instead of checking if we're using Unity on a Unity session.

It's better to do that because we can use Compiz on a Unity session
without Unity. Or we can also use Unity in a different session.
@zcbenz

zcbenz commented Oct 13, 2014

Copy link
Copy Markdown
Contributor

Thanks!

zcbenz added a commit that referenced this pull request Oct 13, 2014
linux: GlobalMenu: only if UBUNTU_MENUPROXY is set
@zcbenz
zcbenz merged commit 0b48c3e into electron:master Oct 13, 2014
@jbt

jbt commented Oct 15, 2014

Copy link
Copy Markdown

I don't know whether I've got something set up wrong on my end but with gnome-shell 3.10.4 on ubuntu 14.04 (and no extra config tweaks or whatever) my $UBUNTU_MENUPROXY is set to 1 even though I don't have any kind of global menu. As such my menu bar has disappeared completely with a build from master of atom (with atom-shell v0.18.0)

@zcbenz

zcbenz commented Oct 15, 2014

Copy link
Copy Markdown
Contributor

@jbt Can you create a new issue for this bug?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants