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

Switch Linux scripts to python3 and Gtk 3 #454

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Switch Linux scripts to python3 and Gtk 3 #454

wants to merge 4 commits into from

Conversation

AntiCompositeNumber
Copy link

Python 2 is no longer supported (#453), and Gtk 2 is not recommended. I only have a Linux machine, so I only updated the Linux scripts and not the Mac ones.

I haven't tested the minimum Python 3 version, but I would expect the scripts to work on Python 3.5 and later. The minimum Gtk version is 3.20. This would mean Debian Jessie and earlier are not supported.

The updated code emits some DeprecationWarnings. These are mostly a consequence of Gtk 3.0's insistence on CSS-defined styling instead of styling defined in code. There is also a DeprecationWarning relating to prey-lock's use of Gdk.Screen.width. That has implications for multiple-screen setups, which I can't test right now, so it's unchanged.

I found two bugs while testing that existed with python 2 and 3. Exiting out of an alert with a reply is not reliable, and there is some overlapping text in prey-config.py.

There are also DeprecationWarnings for lines 99 and 100 as
Gdk.Screen.width and Gdk.Screen.height are deprecated. Changing this
might change how prey-lock deals with multiple displays, so I din't
touch it.
There's an existing issue with text overflowing on the new account
screen
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.

None yet

1 participant