diff --git a/bin/key-mapper-gtk b/bin/key-mapper-gtk index 413b2152..c7c41ec9 100755 --- a/bin/key-mapper-gtk +++ b/bin/key-mapper-gtk @@ -58,6 +58,10 @@ CTX_KEYCODE = 2 CTX_ERROR = 3 +# TODO test on wayland +# TODO reorganize classes and files + + class SingleKeyMapping: """A single, configurable key mapping.""" def __init__(self, device, delete_callback, keycode=None, character=None): @@ -454,6 +458,7 @@ if __name__ == '__main__': if getpass.getuser() != 'root' and 'unittest' not in sys.modules.keys(): # TODO add a polkit thing like # https://gitlab.manjaro.org/applications/pamac/-/tree/master/data/polkit + # does this require a dependency? logger.error('Needs to run with sudo') ErrorDialog( 'Error', diff --git a/keymapper/data.py b/keymapper/data.py index 18cd7a82..f83be167 100644 --- a/keymapper/data.py +++ b/keymapper/data.py @@ -1,22 +1,22 @@ #!/usr/bin/python3 # -*- coding: utf-8 -*- -# ALSA-Control - ALSA configuration interface +# key-mapper - GUI for device specific keyboard mappings # Copyright (C) 2020 sezanzeb # -# This file is part of ALSA-Control. +# This file is part of key-mapper. # -# ALSA-Control is free software: you can redistribute it and/or modify +# key-mapper is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # -# ALSA-Control is distributed in the hope that it will be useful, +# key-mapper is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License -# along with ALSA-Control. If not, see . +# along with key-mapper. If not, see . """Query settings.""" diff --git a/tests/testcases/integration.py b/tests/testcases/integration.py index ed89f592..d86a78f1 100644 --- a/tests/testcases/integration.py +++ b/tests/testcases/integration.py @@ -44,7 +44,7 @@ def gtk_iteration(): def launch(argv=None, bin_path='bin/key-mapper-gtk'): - """Start alsacontrol-gtk with the command line argument array argv.""" + """Start key-mapper-gtk with the command line argument array argv.""" print('\nLaunching UI') if not argv: argv = ['-d'] @@ -63,8 +63,7 @@ def launch(argv=None, bin_path='bin/key-mapper-gtk'): class Integration(unittest.TestCase): """For tests that use the window. - Try to modify the configuration and .asoundrc only by calling - functions of the window. + Try to modify the configuration only by calling functions of the window. """ @classmethod def setUpClass(cls):