Ubuntu에서 PyCharm 실행기 다시 만들기
를 통해 pycharm을 정상적으로 설치 bin/pycharm.sh
했지만 pycharm 디렉토리가 Downloads 폴더 에있는 bash pycharm.sh
동안 실수를 저질렀습니다 .
나중에 디렉토리를 /opt/Pycharm/
. 이로 인해 (PyCharm이 처음 설치 될 때 추가 된) 한 번 작동하는 Unity 런처가 (예상대로) 사용하려고 할 때마다 실패합니다.
pycharm.sh
Unity 런처에서 lauchable 앱으로 다시 추가 하려면 어떻게해야합니까? pycharm.sh
파일 의 위치를 알고 있습니다. 나는 그것을 추가하려고 시도했지만 /usr/bin/
아무것도 변경하지 않습니다.
을 통해 여전히 pycharm을 시작할 수 있습니다 bash /usr/opt/Pycharm/bin/Pycharm.sh
. 그러나 이것은 지루합니다.
최신 정보
.desktop
다음 스크립트를 사용하여 pycharm에 대한 새 파일을 만들려고했습니다 .
[Desktop Entry]
Encoding=UTF-8
Name=PyCharm
Exec=/opt/Pycharm-3.0.1/bin/pycharm.sh
Icon=/opt/Pycharm-3.0.1/bin/PyCharm_32.png
Type=Application
Categories=Development;
StartupWMClass=PyCharm
그러나 파일을 .NET Framework에 저장하려고하면 "Unable to save Pycharm.desktop"오류가 발생합니다 /usr/share/applications/pycharm.desktop
. 이에 관한 도움을 주시면 감사하겠습니다.
먼저 pyCharm
명령 줄을 통해 bin 폴더에서 시작
$ ./pycharm.sh
그런 다음 이동
Tools -> Create Desktop Entry
.
올바른 위치에 올바른 데스크탑 파일이 생성됩니다. 나중에 메뉴에서 시작하고 아이콘을 고정하거나 막대로 끌어서 놓을 수 있습니다. 이렇게하면 .desktop
파일과 멍청한 점보 를 다룰 필요가 없습니다 .
나는 그것을 해결할 수 있었다. 문제는 Pycharm이 이미 .local/share/applications
. 따라서 직접 생성하기 전에 제거해야합니다. 그 후에해야 할 일은 .NET 내부 *.desktop
의 applications
디렉토리에 자신의 파일을 추가하는 것 뿐입니다 usr/share/applications/
.
데스크탑 파일 을 사용하여 .desktop
파일 을 생성해야 sudo
합니다.
[Desktop Entry]
Encoding=UTF-8
Name=PyCharm
Exec=/opt/pycharm-3.0.1/bin/pycharm.sh
Icon=/opt/pycharm-3.0.1/bin/pyCharm.png # Changed from pycharm_32.png
Type=Application
Categories=Development;
StartupWMClass=PyCharm
완료되면 앱을 제대로 실행할 수 있습니다. 그주의 사항 pycharm.sh
도 실행 권한이 있어야합니다.
Ubuntu 16.04에서는 쉽게 액세스 할 수있는 아이콘이없는 "snap"설치 프로그램을 사용했습니다 (스냅 이미지 안에 숨겨진 아이콘이있을 수 있지만 접근하기 어렵습니다). 대신 실행기에 회색 물음표 아이콘이 표시됩니다. 또한 내가 볼 수있는 한 버전 2017.3.3 에는 도구> 데스크톱 항목 만들기 옵션 이없는 것 같습니다 . 어딘가로 옮겨 졌을 수 있습니다.
그래서 pycharm.png
이전의 비 스냅 커뮤니티 설치에서 복사 하여 어딘가에 저장 한 다음 다음을 만들었습니다 ~/.local/share/applications/jetbrains-pycharm-ce.desktop
.
[Desktop Entry]
Version=1.0
Type=Application
Name=PyCharm Community Edition
Icon=/path/to/pycharm.png
Exec="/snap/bin/pycharm-community" %f
Comment=The Drive to Develop
Categories=Development;IDE;
Terminal=false
StartupWMClass=jetbrains-pycharm-ce
그런 다음 명령 줄에서 PyCharm을 시작하면 실행기 항목이 올바른 아이콘과 함께 나타납니다. 그런 다음 마우스 오른쪽 버튼으로 클릭하고 "실행기에 잠금"을 선택하면 계속 유지됩니다.
단점은 아이콘이 앱과 함께 자동으로 업데이트되지 않으므로 오래된 버전이 될 수 있다는 것입니다.
업데이트 된 PyCharm을 가리 키도록 런처를 업데이트하려는 경우 다음 작업에서 4.0.4를 4.0.6으로 변경합니다.
nano /usr/share/applications/jetbrains-pycharm.desktop
Ubuntu 16.04 (이전 버전을 확인하지 않음)
실행 pycharm.sh
(아래에서 올바른 dir 및 PyCharm 버전을 사용하는지 확인하십시오) :
$ ./dir_where_you_placed_it/pycharm-2016.1.4/bin/pycharm.sh
PyCharm이 실행되는 동안 Launcher에서 해당 아이콘을 마우스 오른쪽 버튼으로 클릭하고을 선택 "lock to Launcher"
합니다.
$ pycharm-community
에 아이콘이 표시되면 바로 실행하십시오 taskbar
. 마우스 오른쪽 버튼을 클릭하고을 선택 Lock on the Taskbar
합니다. 문제가 어느 정도 해결됩니다.
간단하게 교체 Icon=/path/to/pycharm.png
에 ~/.local/share/applications/jetbrains-pycharm-ce.desktop
스냅에서 설치할 때 올바른 경로와 meowsqueak의 대답에서합니다.
[Desktop Entry]
Version=1.0
Type=Application
Name=PyCharm Community Edition
Icon=/snap/pycharm-community/current/bin/pycharm.png
Exec="/snap/bin/pycharm-community" %f
Comment=The Drive to Develop
Categories=Development;IDE;
Terminal=false
StartupWMClass=jetbrains-pycharm-ce
도구-> 데스크탑 항목
생성이 작동하지 않는 경우 : 데스크탑에 새 파일을 생성합니다 (vi 또는 유사한 명령 사용).
jetbrains-pycharm.desktop
내부에 다음을 붙여 넣습니다.
#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Type=Application
Name=PyCharm
Icon=/opt/pycharm-5.0.1/bin/pycharm.png
Exec="/opt/pycharm-5.0.1/bin/pycharm.sh" %f
Comment=Develop with pleasure!
Categories=Development;IDE;
Terminal=false
StartupWMClass=jetbrains-pycharm
위의 아이콘 및 exec 속성 의 경로 및 버전 번호를 변경해야합니다 .
다양한 버전의 PyCharm에서 테스트-매력처럼 ☺
sudo vim `which charm`
이제 RUN_PATH
.
I recently resolved a related issue where, after updating from v2.7 to v3.0.2, my PyCharm launcher was still pointing to the old (and now deleted) PyCharm path.
After attempting all of the (good) advice above, the problem still persisted.
The solution, in my case, was to create a desktop entry for ALL USERS.
[Welcome Screen]->Configure->Create Desktop Entry...
Check the box: "Create entry for all users" and then proceed.
Apparently, in a previous installation I must have installed it in this fashion and was not able to update the launcher for a single account.
Now the pycharm updated to version 2016.1 and I find the file jetbrains-pycharm.desktop
in the path ~/.local/share/applications
then just edit the path for Icon
and Exec
In the 2016 version of PyCharm just do following:
- Start PyCharm.
- From the Tools menu, select "Create Desktop Entry..."
- Create entry for "all the users" if required.
- Relaunch PyCharm from Launcher.
Simply type this on your terminal window:
jetbrains-pycharm.desktop
Hope that helps :)
I just wanted to add, I just installed PyCharm Edu for Ubuntu 16.04 LTS today, and the way to create a desktop entry is very easy. When PyCharm Edu opens up, before entering any project, click on configure, and there should be a create Desktop Entry option. Select it, and it will create a PyCharm Edu.desktop file in the following directory:
/usr/local/share/applications
Now traverse to that destination, and click the newly created PyCharm Edu.desktop file to launch PyCharm Edu. After that, you would just need to lock to launcher. It should work.
I know I am very late, but I hope I've helped those of us on Ubuntu 16.04 LTS who are trying to configure a desktop entry for this specific application.
I guess you didn't check 'Create the entry for all users (requires superuser privileges)' option on Tools -> Create Desktop Entry. You should check it.
You don't have to create something new.
참고URL : https://stackoverflow.com/questions/19738980/recreating-pycharm-launcher-in-ubuntu
'Program Tip' 카테고리의 다른 글
원격 모달이있는 부트 스트랩 3 (0) | 2020.11.06 |
---|---|
이 두 비교 결과가 다른 이유는 무엇입니까? (0) | 2020.11.06 |
Ubuntu에서 JDK 1.7에서 JDK 1.8로 이동 (0) | 2020.11.06 |
레일에서 경로를 사용하는 동안 _url과 _path의 차이점은 무엇입니까? (0) | 2020.11.06 |
android : 링크를 클릭 할 수있는 textview의 html (0) | 2020.11.06 |