如何在Manjaro系统中从终端启动Github Desktop以及.AppImage文件的推荐存储路径
Hey there! Let's break this down step by step since you're new to Manjaro and Linux.
Launching GitHub Desktop via Terminal
Since you've already marked the AppImage as executable, here's how to fire it up from the terminal:
Navigate to the folder with your AppImage
Open your terminal and use thecdcommand to move to the directory where you saved the file. For example, if it's in your Downloads folder:cd ~/DownloadsRun the AppImage
Once you're in the right directory, execute the file by typing./followed by the full filename of the AppImage. Using the version you downloaded, that would be:./GitHubDesktop-2.9.14-linux2.AppImageAlternatively, you can skip navigating and run it directly with the full absolute path:
~/Downloads/GitHubDesktop-2.9.14-linux2.AppImage
Recommended Folders for Storing AppImage Files
Where you store your AppImages depends on whether you want it accessible to just your user account or all users on the system. Here are the most common, recommended options:
User-specific storage (no sudo required)
~/.local/bin: This is a top choice because this directory is usually included in your user'sPATHenvironment variable. After moving the AppImage here, you can launch it with a simple command instead of typing full paths.
Example steps to set this up:# Move the file to ~/.local/bin and rename it for easier access mv ~/Downloads/GitHubDesktop-2.9.14-linux2.AppImage ~/.local/bin/github-desktopNow you can launch GitHub Desktop anytime from the terminal just by running:
github-desktop~/Applications: This is a dedicated user-specific folder for apps, and most desktop environments (like GNOME, KDE) will automatically detect AppImages here and add them to your application menu. If this folder isn't in yourPATHalready, you can add it to make terminal launches easier.
System-wide storage (all users can access, requires sudo)
/opt: This is the standard directory for third-party software installed system-wide. To move the AppImage here:
You can then launch it with:sudo mv ~/Downloads/GitHubDesktop-2.9.14-linux2.AppImage /opt/
For even easier system-wide access, create a symbolic link in/opt/GitHubDesktop-2.9.14-linux2.AppImage/usr/local/bin:
Now any user on the system can launch it by typingsudo ln -s /opt/GitHubDesktop-2.9.14-linux2.AppImage /usr/local/bin/github-desktopgithub-desktopin the terminal.
内容的提问来源于stack exchange,提问作者Konstantinos Larkos

