Lubuntu - 메뉴에 소프트웨어를 추가하는 방법

Lubuntu - 메뉴에 소프트웨어를 추가하는 방법

저는 Lubuntu를 처음 사용하기 때문에 이 명령을 사용하여 명령줄에서만 실행할 수 있는 LightTable과 같은 편집기를 다운로드했습니다.

./조도계

그러면 이 소프트웨어를 내 메뉴에 어떻게 추가합니까?

답변1

예를 들어, 폴더의 내용을 확인할 수 있습니다.

ls -la /usr/share/applications/

다음과 같은 다른 텍스트 편집기에 대한 유사한 항목을 찾으십시오.

# cat /usr/share/applications/sublime.desktop 
[Desktop Entry]
Encoding=UTF-8
Name=Sublime Text
Comment=Sublime Text 2
Exec=sublime_text
Icon=/opt/sublime/Icon/256x256/sublime_text.png
Terminal=false
Type=Application
StartupNotify=true
Categories=GNOME;GTK;Development;TextEditor;

요구 사항에 따라 콘텐츠를 복사하고 수정합니다. 예를 들면 다음과 같습니다.

cp -p /usr/share/applications/sublime.desktop /usr/share/applications/lighttable.desktop

예를 들어. :

# cat /usr/share/applications/lighttable.desktop
[Desktop Entry]
Encoding=UTF-8
Name=Light Table
Comment=Light Table
Exec=/path/to/your/executable/script/LightTable
Icon=/path/to/your/icon/Light_Table.png
Terminal=false
Type=Application
StartupNotify=true
Categories=GNOME;GTK;Development;TextEditor;

LightTable참고: GUI 사용자에게 스크립트에 대한 실행 권한이 있는지 확인하십시오.

관련 정보