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

use dconf for ubuntu launcher hide/width detection #509

Merged
merged 1 commit into from
Apr 28, 2015
Merged

use dconf for ubuntu launcher hide/width detection #509

merged 1 commit into from
Apr 28, 2015

Conversation

scinart
Copy link
Contributor

@scinart scinart commented Apr 27, 2015

The affected code is tested on my Ubunut 15.04 and documented.

current guake's detection about ubuntu launcher's hide state and icon size is not working.
Now dconf is used to solve this problem. (for ubuntu >=12.10)

I believe the change is quite straightforward.

if float(platform.dist()[1])>=12.10:
unity_hide = int(subprocess.check_output(
['/usr/bin/dconf', 'read',
'/org/compiz/profiles/unity/plugins/unityshell/launcher-hide-mode']))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh please no, we do not want to shell out command.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, what is the python way to do it then. I'm a python amateur.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm fairly sure dconf has a python API.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK. Then I hope that this issue is fixed the correct way soon.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'll check that but I remember that there was some dependencies problem... so I ended up executing this command for other use case :(

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

arf :( we would really prefer to avoid this.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's a chicken and egg problem. This should be handled by the packager (for debian, for rehat, ...). But, as a User, I want to be able to use Guake directly from source. And as a Maintainer, I don't want packager to introduce regression in my software.... So I don't see how to handle distribution specific stuff differently.

Maybe a good thing to do is to move this trick in a spefic module so distribution hack are better identified

@gsemet
Copy link
Member

gsemet commented Apr 28, 2015

I merge and give a try on my system. I'll switch to ubuntu 15.04 today

gsemet added a commit that referenced this pull request Apr 28, 2015
use dconf for ubuntu launcher hide/width detection
@gsemet gsemet merged commit 135a8cb into Guake:master Apr 28, 2015
@gsemet gsemet added this to the 0.7.0 milestone Apr 28, 2015
gsemet added a commit that referenced this pull request Jan 30, 2017
use dconf for ubuntu launcher hide/width detection
gsemet added a commit that referenced this pull request Jan 30, 2017
use dconf for ubuntu launcher hide/width detection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants