Fixes KDEConnect firewall setting

This commit is contained in:
Michel Fedde 2025-05-05 10:34:05 +02:00
parent 0ac98e3911
commit f8f605ae70
2 changed files with 4 additions and 2 deletions

View file

@ -37,7 +37,7 @@ device {
} }
device { device {
name = evremap-virtual-input-for-/dev/input/event30 name = evremap-virtual-input-for-/dev/input/event17
kb_layout = us kb_layout = us
kb_variant = altgr-intl kb_variant = altgr-intl
} }

View file

@ -3,7 +3,9 @@
addApplications kdeconnect addApplications kdeconnect
setupKDEConnect() { setupKDEConnect() {
sudo firewall-cmd --permanent --add-port=1714-1764/{tcp,udp} if [ firewall-cmd --state ]; then
sudo firewall-cmd --permanent --add-port=1714-1764/{tcp,udp}
fi
echo "-- For some reason, its recommended to reboot your device to make kdeconnect work..." echo "-- For some reason, its recommended to reboot your device to make kdeconnect work..."
} }