Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Guake width wrong on non-Unity Ubuntu desktop #517

Closed
hotice opened this issue May 4, 2015 · 9 comments
Closed

Guake width wrong on non-Unity Ubuntu desktop #517

hotice opened this issue May 4, 2015 · 9 comments

Comments

@hotice
Copy link

hotice commented May 4, 2015

When using Guake (0.7.0) on a non-Unity desktop (for instance, in Ubuntu GNOME which uses GNOME Shell instead of Unity), the app assumes I'm somehow using Unity and adds a gap to Guake which doesn't fill the screen 100% horizontally. Here's a screenshot: http://i.imgur.com/cDJhkY9.jpg (notice the space on the right).

And here's the output:

$ guake
/usr/lib/python2.7/dist-packages/guake/guake_app.py:1480: GtkWarning: gtk_box_pack: assertion 'child->parent == NULL' failed
  self.mainframe.pack_start(self.mainframe, expand=True, fill=True, padding=0)
correcting window width because of launcher width 17 (from 1920 to 1903)
correcting window width because of launcher width 17 (from 1920 to 1903)
do not set background from user
DBG Window display
DBG: Showing the terminal
correcting window width because of launcher width 17 (from 1920 to 1903)
correcting window width because of launcher width 17 (from 1920 to 1903)

Tested in Ubuntu GNOME 15.04, Unity is not installed and /apps/compiz-1/ doesn't exist in dconf so I'm really not sure why Guake does this...

@hotice
Copy link
Author

hotice commented May 4, 2015

I managed to fix this by modifying src/guake/guake_app.py and replacing:

        if platform.linux_distribution()[0].lower() == "ubuntu":

with:

        if os.environ.get('DESKTOP_SESSION') == "ubuntu":

Apparently the DESKTOP_SESSION is "ubuntu" when the user is using Unity, but it's different for the other Ubuntu flavors (it's "gnome" for Ubuntu GNOME, "mate" for Ubuntu MATE, "Lubuntu" for Lubuntu, etc.). I'm not sure if this is the best approach, but it works for me :)

@Seraff
Copy link
Contributor

Seraff commented May 4, 2015

I have the same problem. Ubuntu 14.10 + Gnome 3.12.2.

@gsemet gsemet closed this as completed in 9221561 May 4, 2015
@gsemet
Copy link
Member

gsemet commented May 4, 2015

I moved this code to a dedicated method. It should work on ubuntu 14.10 and 15.04 at least

@gsemet gsemet added this to the 0.7.1 milestone May 4, 2015
@gsemet gsemet self-assigned this May 4, 2015
@gsemet
Copy link
Member

gsemet commented May 4, 2015

that's why I used lower() to remove this ambiguity

@gsemet
Copy link
Member

gsemet commented May 4, 2015

I guess that you won't use unity on lubuntu, xubuntu, etc. Only on "ubuntu"

@hotice
Copy link
Author

hotice commented May 4, 2015

Sorry, I noticed that after and removed my comment. I'm not a programmer, I'm just trying to improve what I can in Guake with my limited knowledge.

Can't the code just detect Unity since the left launcher-specific code is only needed there? Because there are quite a few Ubuntu flavors... your code is missing Xubuntu and Kubuntu for instance and it's easy to figure out if the users runs Unity - only when running Unity, "DESKTOP_SESSION" returns "ubuntu" (for Ubuntu 14.04 and newer at least).

@hotice
Copy link
Author

hotice commented May 4, 2015

Or I may have misunderstood your code, like I said I'm not a programmer. If that's the case, ignore my comment above :)

gsemet added a commit to gsemet/guake that referenced this issue May 4, 2015
Signed-off-by: Gaetan Semet <[email protected]>
@gsemet
Copy link
Member

gsemet commented May 4, 2015

I managed to setup a Ubuntu Gnome 15.04 VM and it works :)

@JSteunou
Copy link

Issue is still here on Ubuntu 15.04 stock install. I tried 0.5.0 which is in 15.04 then 0.7.2 from webupt8 ppa

gsemet added a commit that referenced this issue Jan 30, 2017
Signed-off-by: Gaetan Semet <[email protected]>
gsemet added a commit that referenced this issue Jan 30, 2017
Signed-off-by: Gaetan Semet <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants