clash for windows不能自启
archlinux吧
全部回复
仅看楼主
level 4
zyxisme 楼主
勾选了start with linux,但是只有gnome下正常开启,hyprland和i3不行[怒][怒]
2025年08月21日 06点08分 1
level 9
与gnome桌面环境不同,Hyprland不会自启动应用程序,想要应用程序自启动,需要包含xdg-desktop-autostart.target在桌面会话中,但是这个target不能直接用systemctl --user start xdg-desktop-autostart.target启动,所以你需要给桌面会话创建一个target并直接用 Wants= 指明包含xdg-desktop-autostart.target。
在文件夹~/.config/systemd/user/创建一个名为hyprland-session.target的文件并包含以下内容(参考第二章图片):
[Unit]
Description=Hyprland session target
BindsTo=graphical-session.target
Wants=xdg-desktop-autostart.target
然后在你的Hyprland配置文件添加一项exec-once = systemctl --user start hyprland-session.target,如果想在Hyprland退出会话时结束target,就再添加一项exec-shutdown = systemctl stop --user hyprland-session.target到配置文件。
2025年08月22日 15点08分 0
感谢🙏🙏🙏🙏🙏🙏
2025年08月23日 05点08分
level 1
要不试试clash-verge-rev
2025年08月22日 12点08分 2
好的,谢谢老哥[哈哈][哈哈]
2025年08月22日 13点08分
1