Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Couldn't run hiddify-next as root #1434

Open
1 of 2 tasks
NotMephisto opened this issue Oct 24, 2024 · 0 comments
Open
1 of 2 tasks

Couldn't run hiddify-next as root #1434

NotMephisto opened this issue Oct 24, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@NotMephisto
Copy link

NotMephisto commented Oct 24, 2024

Search first

  • I searched and no similar issues were found

What Happened?

It is not possible to run the program from sudo permission to use vpn mode.

Minimal Reproducible Example (MRE)

  1. Try launch app from terminal with this commands (pkexec hiddify %U | sudo hiddify)
  2. Got in terminal output "cannot open display: :0"

Expected Behavior

No response

Version

2.5.7

Platform/OS

Linux

Additional Context

OS: Fedora 40
DE: Hyrpland
Kernel: 6.11.4

Application Config Options

{
  "region": "ru",
  "block-ads": false,
  "use-xray-core-when-possible": false,
  "execute-config-as-is": false,
  "log-level": "warn",
  "resolve-destination": false,
  "ipv6-mode": "ipv4_only",
  "remote-dns-address": "udp://1.1.1.1",
  "remote-dns-domain-strategy": "",
  "direct-dns-address": "1.1.1.1",
  "direct-dns-domain-strategy": "",
  "mixed-port": 12334,
  "tproxy-port": 12335,
  "local-dns-port": 16450,
  "tun-implementation": "gvisor",
  "mtu": 9000,
  "strict-route": true,
  "connection-test-url": "http://cp.cloudflare.com",
  "url-test-interval": 600,
  "enable-clash-api": true,
  "clash-api-port": 16756,
  "enable-tun": true,
  "enable-tun-service": false,
  "set-system-proxy": false,
  "bypass-lan": false,
  "allow-connection-from-lan": false,
  "enable-fake-dns": false,
  "enable-dns-routing": true,
  "independent-dns-cache": true,
  "rules": [],
  "mux": {
    "enable": false,
    "padding": false,
    "max-streams": 8,
    "protocol": "h2mux"
  },
  "tls-tricks": {
    "enable-fragment": false,
    "fragment-size": "10-30",
    "fragment-sleep": "2-8",
    "mixed-sni-case": false,
    "enable-padding": false,
    "padding-size": "1-1500"
  },
  "warp": {
    "enable": false,
    "mode": "proxy_over_warp",
    "clean-ip": "auto",
    "clean-port": 0,
    "noise": "1-3",
    "noise-size": "10-30",
    "noise-delay": "10-30",
    "noise-mode": "m4"
  },
  "warp2": {
    "enable": false,
    "mode": "proxy_over_warp",
    "clean-ip": "auto",
    "clean-port": 0,
    "noise": "1-3",
    "noise-size": "10-30",
    "noise-delay": "10-30",
    "noise-mode": "m4"
  }
}

Relevant log output

~ pkexec hiddify %U

(hiddify:749263): Gtk-WARNING **: 15:19:49.808: cannot open display: 
➜  ~ sudo hiddify     
Authorization required, but no authorization protocol specified


(hiddify:749760): Gtk-WARNING **: 15:22:59.766: cannot open display: :0

Are you willing to submit a PR? If you know how to fix the bug.

  • I'm willing to submit a PR (Thank you!)
@NotMephisto NotMephisto added the bug Something isn't working label Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant