¬°Hola Serkan!

El 2014-09-08 a las 14:59 +0300, Serkan Kurt escribió:
> Package: kde-config-touchpad
> Version: 0.8.1-2
> Severity: important

> "System Settings - KDE crash handler" is viewed when clicked to "Touchpad"
> section on the "input devices" from the KDE "System Settings". This issue
> has been solved as in the following address
> http://forum.pardus.net.tr/index.php?topic=95.0. In this site it is said
> that there is a bug in the kde-config-touchpad package and
> "touchpadinformationwidget.ui" file is searched as
> "touchpadInformationwidget.ui" because of a letter mistake and for this
> reason it can not be found, it gives error and breaks down. As a solution,
> the following commands are given:

> cd /usr/lib/python2.7/dist-packages/synaptiks/kde/widgets/ui
> sudo ln -s 
> ../../../../../../../share/pyshared/synaptiks/kde/widgets/ui/touchpadinformationwidget.ui
>  touchpadInformationwidget.ui

> When the commands above are activated the breakdown problem disapperas. But,
> although I have made the "tapping" settings touchpad and tapping processing
> do not occur. This problem is removed when this solution is used in some
> different computers. But in my Acer 5920G laptop this problem continues. In
> addition, the problem never occurs in GNOME system settings.

> Locale: LANG=tr_TR.UTF-8, LC_CTYPE=tr_TR.UTF-8 (charmap=UTF-8)

The file /usr/share/pyshared/synaptiks/kde/widgets/__init__.py has the code
that loads the ui file, and says: self.__class__.__name__.lower() + '.ui')
which would be bitten by the Turkish i issue:
http://blog.codinghorror.com/whats-wrong-with-turkey/

adding something like:

import string

def ascii_lower(s):
    s.translate(string.maketrans(string.ascii_uppercase, 
string.ascii_lowercase))

and replacing self.__class__.__name__.lower() with
 ascii_lower(self.__class__.__name__)

Should fix the issue.

Happy hacking,
-- 
"If a thing is done wrong often enough, it becomes right" -- Leahy's Law
Saludos /\/\ /\ >< `/

Attachment: signature.asc
Description: Digital signature

_______________________________________________
pkg-kde-extras mailing list
pkg-kde-extras@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-kde-extras

Reply via email to