This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Desktop icons for Eclipse and IntelliJ

Tags: None
(comma "," separated)
Thomas.W
Registered Member
Posts
5
Karma
0
OS
Hello,

I wan to run Eclipse and IntelliJ like all other KDE applications that is, to click on an icon and then getting them started.

Right now I have to launch Eclipse and IntelliJ from the terminal (shellscript).

How can I turn these shellscripts to real "desktop icons".

Does anyone have the appropriate eclipse.desktop and intellij.desktop files ?


Thanks in advance
User avatar
Hans
Administrator
Posts
3304
Karma
24
OS
You can easily create your own desktop files. E.g. in Dolphin, right click -> Create New -> Link to Application...
In "General", write the name of the desktop file and choose an icon.
In "Application", choose which command to run (e.g. a shellscript). Optionally, write a name and description of the application.


Problem solved? Please click on "Accept this answer" below the post with the best answer to mark your topic as solved.

10 things you might want to do in KDE | Open menu with Super key | Mouse shortcuts
Thomas.W
Registered Member
Posts
5
Karma
0
OS
Thanks Hans.

Works great for IntelliJ but I need some additional help for Eclipse.

In order to get Eclipse working properly, my shellscript looks like this:
Code: Select all
#! /bin/bash
export LD_LIBRARY_PATH=/usr/lib/jni
export GDK_NATIVE_WINDOWS=true
/opt/eclipse/eclipse



I tried to create a eclipse.desktop file like this:

Code: Select all
[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=Eclipse
Comment=Galileo
Exec=/bin/bash -c "export GDK_NATIVE_WINDOWS=true && LD_LIBRARY_PATH=/usr/lib/jni && /opt/eclipse/eclipse"
Icon=/opt/eclipse/eclipse.png



Unfortunately, subclipse (svn client) won't start, that is LD_LIBRARY_PATH=/usr/lib/jni is not being recognized in the eclipse.desktop file.



Update: I solved it ! the second "export" command was missing
:

Exec=/bin/bash -c "export GDK_NATIVE_WINDOWS=true && export LD_LIBRARY_PATH=/usr/lib/jni && /opt/eclipse/eclipse"
User avatar
Hans
Administrator
Posts
3304
Karma
24
OS
Ah. I meant that you could run the shell script from the desktop file, but your method works as well. :p

Could you please click on Image under your post with the answer to mark the topic as solved?


Problem solved? Please click on "Accept this answer" below the post with the best answer to mark your topic as solved.

10 things you might want to do in KDE | Open menu with Super key | Mouse shortcuts
Thomas.W
Registered Member
Posts
5
Karma
0
OS
Hans wrote:Ah. I meant that you could run the shell script from the desktop file, but your method works as well. :p



Yes, luckily my method worked based on your first tip o)


Thanks for your fast answer.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]