fix(linux): KDE Neon / Wayland support and NetworkManager DNS - #210
Open
saremeskandary wants to merge 1 commit into
Open
fix(linux): KDE Neon / Wayland support and NetworkManager DNS#210saremeskandary wants to merge 1 commit into
saremeskandary wants to merge 1 commit into
Conversation
…ager - Rewrite LinuxPlatform to use nmcli instead of writing /etc/resolv.conf directly; KDE Neon uses NetworkManager which overwrites resolv.conf - Implement getInterfacesList() via nmcli device status - Add flushDns() fallback: resolvectl first, then systemd-resolve - Add Wayland/Ozone flags (ozone-platform-hint=auto) for native KDE rendering - Fix electron-builder.yml: use icon.png (not .icns) for Linux, set executableName=dnschanger to avoid spaces in install path, pin deb depends, add postinst.sh to set chrome-sandbox SUID and create /usr/bin symlink Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
LinuxPlatformto usenmcliinstead of writing directly to/etc/resolv.conf. On KDE Neon (and any distro using NetworkManager), resolv.conf is managed by NM and overwritten immediately — changes never persisted.nmcli con mod+nmcli con uppersists DNS across reboots.--ozone-platform-hint=autoand--enable-features=UseOzonePlatform,WaylandWindowDecorationson Linux so Electron uses the native Wayland backend under KDE Plasma 6 instead of falling back to XWayland, fixing DPI, window decoration, and rendering issues.icon.icns(macOS format) →icon.pngexecutableName: dnschangerto avoid a space in the install path (/opt/DNS Changer/) which caused Chromium's zygote launcher to split the path and crash (execvp: /opt/DNS)debdependencies includingnetwork-managerbuild/postinst.sh— runs afterdpkg -i, setschrome-sandboxSUID permissions and creates/usr/bin/dnschangersymlink automaticallynmcli device statusinstead of an empty arrayresolvectl flush-caches(systemd 239+) first, falls back tosystemd-resolve --flush-cachesTest plan
.debon KDE Neon —dnschangercommand available after install with no manual stepsnmcli con show <active> | grep DNS)xlsclients— should not appear)🤖 Generated with Claude Code