Skip to content

Fixing Unicode error and other stuff#2

Merged
seletskiy merged 7 commits intoseletskiy:masterfrom
denilsonsa:fixing
Jul 3, 2015
Merged

Fixing Unicode error and other stuff#2
seletskiy merged 7 commits intoseletskiy:masterfrom
denilsonsa:fixing

Conversation

@denilsonsa
Copy link

Fixing unicode error upon launch (also fixed in elecnix/screenkey@5c362f2, but using a different logic).

Other minor cleanup, mostly whitespace (add ?w=1 to GitHub URLs to ignore whitespace when viewing the diffs) and code styling (with help of pep8 tool).

First error happens upon launch. `unichr()` can't accept values for
multimedia keys, as they are outside the Unicode range.

Second error happens when trying to set a label to a string containing
null characters.
Mostly whitespace.

Also moved GTK/GDK threading initialization to inside main().
@seletskiy
Copy link
Owner

@denilsonsa: wow, thanks! Will merge soon.

Copy link
Owner

Choose a reason for hiding this comment

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

I guess there should be if not ..., because ps will return 0 code if process exist.

Copy link
Owner

Choose a reason for hiding this comment

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

Got it... Never mind.

seletskiy added a commit that referenced this pull request Jul 3, 2015
Fixing Unicode error and other stuff
@seletskiy seletskiy merged commit 31cbdc8 into seletskiy:master Jul 3, 2015
@denilsonsa
Copy link
Author

Yeah, I inverted the sudo_is_running logic because it makes more sense now.

@denilsonsa denilsonsa deleted the fixing branch July 3, 2015 20:45
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.

2 participants