유틸리티에는 찾고 있는 나를 수 있는 응용 프로그램 목록을 꽂으십시오 삽입하려면 품목으로부터 그놈 알고.
예를 들면 다음과 같습니다. 나는 다운로드됨 Eclipse EE (받긴 아주 특별한 플러그인을 그건 작업해야 할, 그리고 그 플러그인 don& # 39, t " like"; 기본 리포지토리를 버전 사용 가능). # 39 m, 그놈 3 를 사용하여 i& unbuntu 11.10. W / o 열기 때문에 터미널, I want to autoexec. Eclipse 실행하는 것입니다.
비활성화해야 아주 간단합니다.
이 메인 메뉴로 사용할 수 있습니다. 그렇지 않으면 설치하는 것이 첫 번째:
sudo apt-get install alacarte
1. 오픈 메인 메뉴
2. 예 참조
! 메인 메뉴
그 후 이름이 응용 프로그램을 실행할 수 있습니다. command_of_application" ";).
편집: 난 당신이 가정에서 누락했습니다 요청했다고 애플리케이션과도 디렉터리입니다. 그렇다면 명령을 해당 응용 프로그램의 전체 경로를 합니다.
발사대 대해서 잘 알고 있다 '는 그놈 파일 / usr / share / 응용 애플리케이션 스즈크토프 /.local/share/applications' 및 '~'. 있는모든 위한 맞춤형 발사대 가정에서 만들 수 있습니다 다음 중 하나를 사용하여 수동으로 생성 및 편집, 파일 또는 폴더 사용하여 사용자 정의 스즈크토프 알라카르트 이전 Gnome 메뉴 에디터이다.
http://blog.randell.ph/2011/08/01/how-to-create-custom-application-launchers-in-gnome-3/ - > < -;;!
그놈 데스크톱 파일 문서용으로 도움이 될 수 있습니다. https://developer.gnome.org/integration-guide/stable/desktop-files.html.en
텍스트 사용자 정의 실행 파일 (예를 들어, ',' 이제 막 크립시엘가데크토프 다음 내용:
[Desktop Entry]
Name=Eclipse EE
Exec=/home/mrPeterson/path_to_executable
StartupNotify=true
Terminal=false
Type=Application
Icon=/optional/path/to/icon.png
하지만 내가 너희와 함께 나누고 싶었던 마음이 좀 알아, 이전, 이 때문에 그냥 보세요들 bash 기능을 했다. 할 수 없기 때문이죠. 느끼고, 효율적인 경우 무료로 사용할 수 있어!
new-gnome-launcher-app(){
# This functions adds some executable file to the gnome launcher.
# It does the following:
# - Add symlink to /usr/bin
# - Add entry for gnome launcher
# TODO: Check image file extension
# Check if root
# if [ "$(id -u)" != "0" ]; then
# echo "Must run as root"
# return 1
# fi
# If parameter is entered, assume it's the executable's directory.
# Else, ask for it
if [ "$?" -gt "1" ]; then
exec_path="$1"
else
echo -n "Enter executable file name: "
read exec_path
fi
# Check if file exists
if [ ! -f "$exec_path" ] || [ ! -f "$(pwd)/$exec_path" ]; then
echo "File doesn't exist"
unset exec_path
return 1
fi
# Get absolute path to file
if [ "${exec_path:0:1}" != "/" ]; then
echo "'$exec_path' was not an absolute path"
exec_path="$(pwd)/$exec_path"
echo "Assuming path '$exec_path'"
fi
exec_basename="$(basename "$exec_path")"
# Check if symlink already exists
if [ -f "/usr/bin/$exec_basename" ]; then
echo "File '/usr/bin/$exec_basename' already exists. We wont be able to create the symlink."
unset exec_basename
unset exec_path
return 1
fi
# Add entry for gnome panel
gnome_panel_entry_path="/usr/share/applications/$exec_basename.desktop"
if [ -f "$gnome_panel_entry_path" ]; then
echo "Entry '$(basename "$gnome_panel_entry_path")' already exists!"
unset exec_basename
unset gnome_panel_entry_path
unset exec_path
return 2
fi
# ask for display name
while [ "$USER_RESPONSE" != "y" ] && [ "$USER_RESPONSE" != "Y" ]; do
echo -n "Enter the program's name: "
read APP_NAME
while [ "$APP_NAME" == "" ]; do
echo -n "Please enter something: "
read APP_NAME
done
# ask for a description
echo -n "Enter a short description: "
read APP_DESCRIPTION
# ask for an icon file
echo -n "Enter absolute path to an icon image (empty for none): "
read APP_ICON
while [ "$APP_ICON" != "" ] && [ ! -f "$APP_ICON" ]; do
echo -n "File doesn't exist. Retry: "
read APP_ICON
done
# ask if it needs a terminal
echo -n "Will this program need a terminal? [y/n]: "
read APP_TERMINAL
while [ "$APP_TERMINAL" != "y" ] && [ "$APP_TERMINAL" != "n" ]; do
echo -n "Please enter something: "
read APP_TERMINAL
done
if [ "$APP_TERMINAL" == "y" ]; then
APP_TERMINAL="true"
else
APP_TERMINAL="false"
fi
# ask for tags
echo -n "Enter some categories that fit your program (';' separated): "
read APP_CATEGORIES
# Check if user is satisfied
while [ "$USER_RESPONSE" == "" ] || [ "$USER_RESPONSE" != "y" ] && [ "$USER_RESPONSE" != "Y" ] && [ "$USER_RESPONSE" != "n" ] && [ "$USER_RESPONSE" != "N" ]; do
echo -e "Is this information correct?\n"
echo -e "\tName: \t\t$APP_NAME"
echo -e "\tExecutable: \t$exec_path"
echo -e "\tDescription: \t$APP_DESCRIPTION"
echo -e "\tIcon File: \t$APP_ICON"
echo -e "\tTerminal: \t$APP_TERMINAL"
echo -e "\tCategories: \t$APP_CATEGORIES"
echo -n "(y/n): "
read USER_RESPONSE
done
if [ "$USER_RESPONSE" == "n" ] || [ "$USER_RESPONSE" == "N" ]; then
echo "Then please enter everything again, kind sir"
unset USER_RESPONSE
fi
done
# User is happy
# Add link to /usr/bin
echo "Adding link to /usr/bin"
sudo ln -s "$exec_path" "/usr/bin/$exec_basename"
# Add gnome panel entry
echo "Creating gnome-panel entry"
echo "[Desktop Entry]" | sudo tee -a "$gnome_panel_entry_path" > /dev/null
echo "Type=Application" | sudo tee -a "$gnome_panel_entry_path" > /dev/null
echo "Encoding=UTF-8" | sudo tee -a "$gnome_panel_entry_path" > /dev/null
echo "Name=$APP_NAME" | sudo tee -a "$gnome_panel_entry_path" > /dev/null
echo "Comment=$APP_DESCRIPTION" | sudo tee -a "$gnome_panel_entry_path" > /dev/null
echo "Icon=$APP_ICON" | sudo tee -a "$gnome_panel_entry_path" > /dev/null
echo "Exec=$exec_path" | sudo tee -a "$gnome_panel_entry_path" > /dev/null
echo "Terminal=$APP_TERMINAL" | sudo tee -a "$gnome_panel_entry_path" > /dev/null
echo "Categories=$APP_CATEGORIES" | sudo tee -a "$gnome_panel_entry_path" > /dev/null
echo "Entry added in '$gnome_panel_entry_path'"
unset USER_RESPONSE
unset APP_NAME
unset APP_CATEGORIES
unset APP_TERMINAL
unset APP_DESCRIPTION
unset APP_ICON
unset exec_path
unset exec_basename
unset gnome_panel_entry_path
return 0
}