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

@ -3,7 +3,9 @@
addApplications kdeconnect
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..."
}