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

orientation feature for linux #273

Merged
merged 3 commits into from
Feb 3, 2018
Merged

Conversation

susmit
Copy link
Contributor

@susmit susmit commented Jan 26, 2017

Orientation feature for linux. It has been implemented with the help of xrandr.
Pr is in working condition and ready to be merged.

from plyer.facades import Orientation


class AndroidOrientation(Orientation):
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it should be LinuxOrientation



def instance():
return AndroidOrientation()
Copy link
Contributor

Choose a reason for hiding this comment

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

return LinuxOrientation()

@susmit
Copy link
Contributor Author

susmit commented Jan 26, 2017

thx malverick i was doing the changes meanwhile you spotted it. :)

@akshayaurora akshayaurora merged commit 90c0426 into kivy:master Feb 3, 2018
@akshayaurora
Copy link
Member

@phunsukwangdu thanks 👍 could you add a try/except and throw a appropriate error just to exit cleanly when Xrandr is not installed.

@bhaveshAn
Copy link
Contributor

bhaveshAn commented Feb 4, 2018

Using shell=True is hazardous Please see https://docs.python.org/2/library/subprocess.html#frequently-used-arguments

Thats the reason I removed it in #320 and implement it using Popen

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.

5 participants