Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
anonysoul committed Jan 29, 2024
1 parent a7c069a commit d01339d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/platform/linux.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,8 @@ class GNOMECommander {
private static readonly space = / /g;

static status(): LinuxProxyConfig | null {
const enabled = Executor.executeSync(`gsettings set org.gnome.system.proxy mode "manual"`).replace(this.singleQuotation, "").replace(this.newline, "") !== "none"
const enabled = Executor.executeSync(`gsettings get org.gnome.system.proxy mode`).replace(this.singleQuotation, "").replace(this.newline, "") !== "none"
if (enabled) {


const httpProxyHost = Executor.executeSync(`gsettings get org.gnome.system.proxy.http host`).replace(this.singleQuotation, "").replace(this.newline, "")
const httpProxyPort = Executor.executeSync(`gsettings get org.gnome.system.proxy.http port`).trim();

Expand Down

0 comments on commit d01339d

Please sign in to comment.