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

建议不要改系统设置 #24

Closed
e71828 opened this issue Dec 15, 2023 · 5 comments
Closed

建议不要改系统设置 #24

e71828 opened this issue Dec 15, 2023 · 5 comments

Comments

@e71828
Copy link

e71828 commented Dec 15, 2023

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
你的 /etc/profile.d/clash.sh 会把 xrdp 搞崩溃。

这是 xrdp 的调试过程。

+ export XDG_DATA_DIRS=/usr/local/share:/usr/share
+ snap_xdg_path=/var/lib/snapd/desktop
+ [ -n /usr/local/share:/usr/share ]
+ [ -n /usr/local/share:/usr/share ]
+ export XDG_DATA_DIRS=/usr/local/share:/usr/share:/var/lib/snapd/desktop
+ [ -r /etc/profile.d/bash_completion.sh ]
+ . /etc/profile.d/bash_completion.sh
+ [ x != x -a x$  != x -a x = x ]
+ [ -r /etc/profile.d/cedilla-portuguese.sh ]
+ . /etc/profile.d/cedilla-portuguese.sh
+ [  = pt -a en != pt ]
+ [ -r /etc/profile.d/clash.sh ]
+ . /etc/profile.d/clash.sh
/etc/xrdp/startwm.sh: 2: /etc/profile.d/clash.sh: Syntax error: "(" unexpected

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

@KitanoSakurana
Copy link
Collaborator

好的 感谢反馈,如果可以希望可以提供解决方法,以便我们后续进行修复(毕竟只是备份,没有过多的进行查源代码)

@e71828
Copy link
Author

e71828 commented Dec 15, 2023

当然可以无视建议,应该在文件上直接加 解释器试试。

这是我选择的方案,集成度没那么高,主打一个轻量 和 服务。

https://github.com/e71828/clash-linux-backup.git

@KitanoSakurana
Copy link
Collaborator

所以好多都不清楚,我们只负责修复,原作者怎么写的具体不太清楚

@KitanoSakurana
Copy link
Collaborator

当然可以无视建议,应该在文件上直接加 解释器试试。

这是我选择的方案,集成度没那么高,主打一个轻量 和 服务。

https://github.com/e71828/clash-linux-backup.git

好的,感谢提供此问题,我们会尽快处理

@e71828
Copy link
Author

e71828 commented Dec 15, 2023

加 #!/bin/bash 没有用。

去掉 function 可以。

# 开启系统代理
proxy_on() {
        export http_proxy=http://127.0.0.1:7890
        export https_proxy=http://127.0.0.1:7890
        export no_proxy=127.0.0.1,localhost
        export HTTP_PROXY=http://127.0.0.1:7890
        export HTTPS_PROXY=http://127.0.0.1:7890
        export NO_PROXY=127.0.0.1,localhost
        echo -e "\033[32m[√] 已开启代理\033[0m"
}

# 关闭系统代理
proxy_off(){
        unset http_proxy
        unset https_proxy
        unset no_proxy
        unset HTTP_PROXY
        unset HTTPS_PROXY
        unset NO_PROXY
        echo -e "\033[31m[×] 已关闭代理\033[0m"
}

@Elegycloud Elegycloud pinned this issue Dec 15, 2023
@e71828 e71828 closed this as completed Dec 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants