Programing

Intellij 런처가 Unity에서 작동하지 않습니까?

lottogame 2020. 10. 31. 09:08
반응형

Intellij 런처가 Unity에서 작동하지 않습니까?


/usr/share/applications내가 만든 아래 :

intellij.desktop:

#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Exec=/path/To/idea.sh"
Name[en_US]=Intellij
Name=Intellij
Icon=/path/to/intellij.png

그런 다음 Unity 런처 바로 드래그합니다. 클릭했는데 아무 일도 일어나지 않습니다. 어떻게 작동시킬 수 있습니까?

JAVA_HOME올바르게 설정되면 Eclipse와 같은 다른 Java 앱이 작동하고을 클릭 idea.sh합니다.


내 구성 :

  • Ubuntu 12.10 64 비트 (데스크톱)
  • Oracle JDK 1.7
  • IntelliJ 커뮤니티 12

IntelliJ 자체에서 " 도구 "> " 데스크탑 항목 생성 "을 사용할 수 있습니다 .


  1. / path / idea / bin 폴더 에서 터미널을 엽니 다.
  2. ./idea.sh로 IntelliJ 시작
  3. 도구 -> 데스크탑 항목 생성
  4. IntelliJ 닫기
  5. 터미널에서 관리자로 nautilus를 시작합니다 ( gksudo nautilus ).
  6. / usr / share / applications로 이동 합니다.
  7. IntelliJ의 새 아이콘을 실행기로 드래그하십시오.

실행기가 JDK_HOME 구성을 읽지 않기 때문에 데스크탑 항목 작성 이벤트에 여전히 오류가 있습니다.

데스크톱 항목을 만든 후 실행기를 마우스 오른쪽 버튼으로 클릭하고 속성을 선택한 다음 명령 입력 텍스트에서 큰 따옴표 앞에 bash -i를 추가합니다. exp : command [bash -i "/home/me/ides/idea/bin/idea.sh" % f]


런처에서 IntelliJ IDEA를 시작하려면
1. idea.desktop 파일을 만들고 다음을 포함합니다.

    [Desktop Entry]
    Name=IntelliJ IDEA
    Comment=IntelliJ IDEA IDE
    Exec=/{installation directory}/idea-IC-129.713/bin/idea.sh
    Icon=/{installation directory}/idea-IC-129.713/bin/idea.png
    Terminal=false
    StartupNotify=true
    Type=Application
    Categories=Development;IDE;


2. 실행 가능한 권한 파일을 추가합니다 (권한 탭에서 파일을 마우스 오른쪽 버튼으로 클릭하고 실행 권한을 확인합니다). [또는 sudo chmod +x idea.desktop]
3. 해당 파일을 다음에 복사합니다 /usr/share/applications(명령 줄에서 sudo cp idea.desktop /usr/share/applications)
4. 해당 파일을 ~/.local/share/applications(명령 줄, sudo cp idea.desktop ~/.local/share/applications)에 복사합니다.

이제 대시를 확인하십시오.


나는 일반적으로 다음과 같은 것을 가리키는 일반 메뉴 (시작 메뉴를 마우스 오른쪽 버튼으로 클릭하고 편집 선택) 아래에 러너를 만듭니다. bash -i ~/bin/idea/bin/idea.sh

bash -iJAVA_HOME이 올바르게 설정된 .bashrc를 읽는 데 사용 합니다. 다른 프로그램처럼 작동합니다.

bin / idea는 항상 최신 버전에 대한 링크이므로이 시작 메뉴 항목을 다시 만들 필요가 없습니다.


Ubuntu 17.10을 실행하고 있고 스냅을 사용하여 Intellij를 설치 한 내 컴퓨터에서 데스크탑 항목 생성 옵션을 찾을 수 없습니다 .

결과적으로 .desktop파일을 /var/lib/snapd/desktop/applications에서 .local/share/applications.


다음에서 데스크탑 항목을 작성하십시오. Tools > Create Desktop Entry

IntelliJ를 새 버전으로 업그레이드하는 경우 다음을 수행하십시오.

ll ~/.local/share/applications | grep idea

이 두 파일이 표시되어야합니다.

-rw------- 1 user user  315 Mar 28 17:06 jetbrains-idea-ce.desktop
-rw-rw-r-- 1 user user  311 Mar 28 17:06 jetbrains-idea.desktop

두 파일을 모두 열고 두 파일 모두에서 새로 설치된 IntelliJ 경로를 업데이트하십시오.

[Desktop Entry]
Version=1.0
Type=Application
Name=IntelliJ IDEA Community Edition
Icon=/home/user/Downloads/idea-IU-181.4203.550/bin/idea.png
Exec="/home/user/Downloads/idea-IU-181.4203.550/bin/idea.sh" %f
Comment=The Drive to Develop
Categories=Development;IDE;
Terminal=false
StartupWMClass=jetbrains-idea-ce

jetbrains-datagrip.desktop 파일 생성

sudo gedit /usr/share/applications/jetbrains-datagrip.desktop

[Desktop Entry]
Version=1.0
Type=Application
Name=DataGrip
Icon=/home/gilcierweb/DataGrip/bin/product.png
Exec="/home/gilcierweb/DataGrip/bin/datagrip.sh" %f
Comment=Develop with pleasure!
Categories=Development;IDE;
Terminal=false
StartupWMClass=jetbrains-datagrip

Just posting in case some other people come across this issue.

For me all I had to do right click the entry and go to properties and in the Application tab under Work path I put the full path to the bin folder.

For example /home/teodorvecerdi/Development/idea-IU-172.3317.76/bin/.


Another alternative:

  1. cd /bin
  2. ln -s <path to idea.sh> idea - now it is available in the dash under "idea"
  3. open dash, type idea and start IntelliJ
  4. right click on the icon in the sidebar and add it to the starter

In order to have just one IntelliJ icon on the Launcher you need to add following line to your idea .desktop file:

StartupWMClass=jetbrains-idea

My working sample idea.desktop file looks like:

[Desktop Entry]
Type=Application
Terminal=false
Name=Idea13
Icon=/usr/local/bin/idea13/bin/idea.png
Exec=/usr/local/bin/idea13/bin/idea.sh
StartupWMClass=jetbrains-idea

참고URL : https://stackoverflow.com/questions/14424254/intellij-launcher-doesnt-work-on-unity

반응형