Mahdi-zarei / nekoray

Qt based cross-platform GUI proxy configuration manager (backend: sing-box)
GNU General Public License v3.0
488 stars 33 forks source link

BUG: System proxy is broken on linux #156

Closed sweet-jelly closed 1 month ago

sweet-jelly commented 1 month ago

Describe the problem

"System proxy" is broken on linux (Ubuntu 24.04). Tun mode works fine.

Expected behavior:

Install as system proxy

Actual behavior:

The "system proxy" checkbox immediately unchecks

How to reproduce

Just try to check "system proxy".

My setup (sensitive data edited out):

image

log

(process:483114): dconf-WARNING **: 01:23:37.390: failed to commit changes to dconf: Cannot autolaunch D-Bus without X11 $DISPLAY
(process:483123): dconf-WARNING **: 01:23:37.410: failed to commit changes to dconf: Cannot autolaunch D-Bus without X11 $DISPLAY
(process:483133): dconf-WARNING **: 01:23:37.429: failed to commit changes to dconf: Cannot autolaunch D-Bus without X11 $DISPLAY
(process:483142): dconf-WARNING **: 01:23:37.448: failed to commit changes to dconf: Cannot autolaunch D-Bus without X11 $DISPLAY
(process:483151): dconf-WARNING **: 01:23:37.467: failed to commit changes to dconf: Cannot autolaunch D-Bus without X11 $DISPLAY
(process:483161): dconf-WARNING **: 01:23:37.486: failed to commit changes to dconf: Cannot autolaunch D-Bus without X11 $DISPLAY
(process:483170): dconf-WARNING **: 01:23:37.505: failed to commit changes to dconf: Cannot autolaunch D-Bus without X11 $DISPLAY
(process:483179): dconf-WARNING **: 01:23:37.524: failed to commit changes to dconf: Cannot autolaunch D-Bus without X11 $DISPLAY
(process:483188): dconf-WARNING **: 01:23:37.544: failed to commit changes to dconf: Cannot autolaunch D-Bus without X11 $DISPLAY
(process:483198): dconf-WARNING **: 01:23:37.563: failed to commit changes to dconf: Cannot autolaunch D-Bus without X11 $DISPLAY
(process:483207): dconf-WARNING **: 01:23:37.582: failed to commit changes to dconf: Cannot autolaunch D-Bus without X11 $DISPLAY
Failed to open connection to "session" message bus: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
grpc-status error code: 2 , error msg: execute (/usr/bin/su) su - root -c dbus-send --type=signal /KIO/Scheduler org.kde.KIO.Scheduler.reparseSlaveConfiguration string:'': exit status 1
[Error] gRPC: QNetworkReply::NetworkError code: 301
Failed to set system proxy with error Unknown error 301
sweet-jelly commented 1 month ago

I tried to google it and it seems like something like this happens if the DISPLAY end variable is not properly passed to the subprocess.

Mahdi-zarei commented 1 month ago

it is fixed in 6d7ce2868ca5e42c46a5227aa50aaf0cdf890bc0 , please wait for the next release

Mahdi-zarei commented 1 month ago

try 4.2.0-beta.1

sweet-jelly commented 1 month ago

Great job, 4.2.0-beta.1 works fine.