인간은 망각의 동물이며 특히 나는 더욱 그러하다..
Step 1: Create a New .desktop File
Open your favorite text editor and create a new file. For the purposes of this guide, we’ll name it my_script.desktop.
Step 2: Add Content to the File
Paste the following content into the file:
[Desktop Entry]
Version=1.0
Name=My Script
Type=Application
Icon=/path/to/icon.png
Exec=/path/to/my_script.sh
Remember to replace /path/to/icon.png with the actual path to your desired icon file, and /path/to/my_script.sh with the actual path to your shell script.
Step 3: Save the File
Save the file with the .desktop extension in your preferred location.
Step 4: Move the .desktop File
Move the .desktop file to the /usr/share/applications directory. This can be done by running the following command in the terminal:
sudo mv /path/to/my_script.desktop /usr/share/applications
Replace /path/to/my_script.desktop with the actual path to your .desktop file.
Step 5: Check File Permissions
Ensure that the .desktop file has the correct permissions. You can use the chmod command to set the permissions to 644, like this:
sudo chmod 644 /usr/share/applications/my_script.desktop
This command sets the permissions so that the owner can read and write the file, and everyone else can read it.
'misc tip' 카테고리의 다른 글
텔레그램 봇으로 실시간 주식/환율 캔들 차트 받아오기 (2) | 2025.05.22 |
---|---|
Python Virtual Environment (1) | 2025.05.09 |
Dearpygui (0) | 2025.05.08 |
Ubuntu server 외부 접속 (0) | 2025.05.08 |
Config git server (0) | 2025.05.08 |