Skip to content

Commit

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

static status(): LinuxProxyConfig | null {
const httpProxyHost = Executor.executeSync(`gsettings get org.gnome.system.proxy.http host`).replace(this.singleQuotation, "")
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();

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

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

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

const noProxy = Executor.executeSync(`gsettings get org.gnome.system.proxy ignore-hosts`).replace(this.squareBrackets, "").replace(this.singleQuotation, "").replace(this.space, "")
const noProxy = Executor.executeSync(`gsettings get org.gnome.system.proxy ignore-hosts`).replace(this.squareBrackets, "").replace(this.singleQuotation, "").replace(this.space, "").replace(this.newline, "")
const useAuthentication = Executor.executeSync(`gsettings get org.gnome.system.proxy.http use-authentication`)
return {
http: httpProxyHost === "" || httpProxyPort === "" ? undefined : {
Expand Down

0 comments on commit 9efe68a

Please sign in to comment.