Linux에서는 Shortcut 만드는것도 귀찮다. 누가 자동화하는 앱이 있었는데 그마져도 단절되어서..
정리하면 아래와 같다.
Orange desktop shortcut icon 만드는법
#!/bin/bash
# conda 초기화 (두 방법 중 하나 선택)
source ~/anaconda3/etc/profile.d/conda.sh # 방법1: 직접 소스 실행
# 혹은
#eval "$(conda shell.bash hook)" # 방법2: shell hook 사용
conda activate orange3
python -m Orange.canvas
#!/bin/bash
# conda shell hook 불러오기
#eval "$(conda shell.bash hook)"
#conda activate orange3
#python -m Orange.canvas
chmod +x /home/billy/orange_run.sh
[Desktop Entry]
Type=Application
Name=Orange Script
#Exec=gnome-terminal -- bash -c "/home/billy/orange_run.sh; exec bash" #terminal열려 있음
#Exec=gnome-terminal -- bash -c "/home/billy/orange_run.sh" #terminal 자동닫힘
Exec=/home/billy/orange_run.sh #terminal 자동닫힘
Icon =/home/billy/Downloads/orange-256.png
#Icon=utilities-terminal
Terminal=false
각위치에 png or icon 파일은 받아놓아야겠지?
chmod +x ~/.local/share/applications/orange.desktop
update-desktop-database
요렇게, 자동으로 나올것이다.
마우스 오른쪽 버튼 눌러서 추가하면됨..
img