A repo that set up Clash For Windows
as an application on Ubuntu 22.04
We can download the linux version of CFW from Clash.for.Windows-0.20.39-x64-linux.tar.gz
-
There's a
cfw_launcher.sh
in this repo, which executes the executable filecfw
in.tar.gz
that we just downloaded, please modify the path in this script to fit your case. -
Make the script executable:
chmod +x cfw_launcher.sh
-
There's a
cfw.desktop
in this repo as well. Replace/path/to/cfw_launcher.sh
with the actual path to your script. You need to specify an icon by replacing/path/to/icon.png
with the path to an image file (e.g., PNG) for your application icon. -
Make the file executable:
chmod +x cfw.desktop
-
Move the file to make it accessible to your desktop environment:
mv cfw.desktop ~/.local/share/applications/
-
Refresh the Desktop Environment: You may need to log out and log back in or restart your desktop environment to see the new application launcher.
Now, you should be able to find your CFW Launcher in the application menu or search for it using the specified name. Clicking on the launcher should execute your cfw_launcher.sh script. Then you can config your CFW as usual.