-
Notifications
You must be signed in to change notification settings - Fork 31
Upgrading
It is recommended to first uninstall the driver (as seen in Uninstalling section), of course not removing the /etc/g910-gkeys/config.json
or $HOME/.config/g910-gkeys/config.json
.
After the uninstallation run pip install -e ./
from within the driver folder and the program should install itself.
Even though the upper command will work on Arch based distros it is better to install the program by pulling the pkgbuild folder, building the .tar.gz with makepkg
and installing with pacman: pacman -U g910-gkeys-git-*.*.*-1-any.pkg.tar.xz
where you fill in the correct version number.
Even better, use the AUR
If you update from version <= v0.2.4 you will need to make some manual changes to your $HOME/.config/g910-gkeys/config.json
to make use of the new gkey profile feature.
You don't need to do anything if you don't want to use the profile feature your old config will be loaded as default profile m1.
If you use the installer your old config will be moved to the new location automatically. On manual installations you need to move your old config file to the new location and set the permissions to your username.
sudo mv /etc/g910-gkeys/config.json "$HOME"/.config/g910-gkeys/config.json
sudo chown "$USER":"$USER" "$HOME"/.config/g910-gkeys/config.json
You can delete the old log file sudo rm /var/log/g910-gkeys.log
.
If you want to keep the log in this folder you can change the permissions on the log file sudo chown $USER:$USER /var/log/g910-gkeys.log
and change the log_path in your config. Default location of the log file is now $HOME/g910-gkeys.log
but can be changed in the config.