LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   .desktop file dont want to start eclipse lxde debian9 32bit (https://www.linuxquestions.org/questions/linux-desktop-74/desktop-file-dont-want-to-start-eclipse-lxde-debian9-32bit-4175675205/)

floppy_stuttgart 05-14-2020 05:32 AM

.desktop file dont want to start eclipse lxde debian9 32bit
 
Hello,
I have installed eclipse on debian9 32 bit lxde.
It starts with terminal command, standard user,
Quote:

/root/eclipse/scout-2018-09/eclipse/eclipse
I have created an icon file called eclipse.desktop on the Desktop area. See below. I see the icon on the desktop.

With a double click on the icon at the desktop, the failure which appear is
Quote:

Ungültige .desktop-Datei: '/home/family/Schreibtisch/eclipse.desktop'
=
Quote:

invalid desktop file
=
eclipse dont start.

Code:

[Desktop Entry]
Name=Eclipse
Type=Application
Terminal=false
Exec=/root/eclipse/scout-2018-09/eclipse/eclipse
Icon=/home/family/icon.xpm
StartupNotify=true

Any advice and help is welcome what should be done in order to make that shortcut working.

Turbocapitalist 05-14-2020 05:52 AM

Quote:

Originally Posted by floppy_stuttgart (Post 6122776)
It starts with terminal command, standard user,
/root/eclipse/scout-2018-09/eclipse/eclipse

The standard, unprivileged accounts do not have access to root's home directory nor should they. Also, graphical programs should not be run as root. So if that path works from the terminal, then something is very wrong.

Your .desktop file should have something more like the following:

Code:

Exec=/usr/bin/eclipse
So check the output of the following lines.

Code:

which eclipse
If it shows nothing, then the installation of Eclipse went wrong.

shruggy 05-14-2020 05:59 AM

Sorry, discard this. Turbocaptalist already gave you all the relevant infos.

floppy_stuttgart 05-14-2020 12:38 PM

ok. It seems my diagnosis was wrong: it starts only with root user.
I re-installed under "root" user, with the eclipse installer
Quote:

./eclipse-inst
and gave following directory in the installation GUI
Quote:

/usr/bin
later changed the exec rights with
Quote:

chmod 0777 /usr/bin/eclipse/scout-2018-092/eclipse/eclipse
then including the link above into the .desktop file.
By clicking the icon now, it show following error
Quote:

Eclipse
The eclipse executable launcher was unable to locate its
companion shared library.
Any idea how to solve? any help is welcome.

shruggy 05-14-2020 01:50 PM

Quote:

Originally Posted by floppy_stuttgart (Post 6122966)
I re-installed in /usr/bin (not /root/ as previously).

The right way would be to install it from the Debian repository:
Code:

sudo apt-get install eclipse
On Debian Stretch, this will install Eclipse 3.8.1.

If you insist on installing the latest version from a tarball, then install it under /opt and make a symbolic link to /opt/eclipse/scout-2018-092/eclipse/eclipse in /usr/local/bin.

floppy_stuttgart 05-14-2020 02:35 PM

I installed the file R from https://www.eclipse.org/downloads/pa...ease/2018-09/r
according https://www.tecmint.com/install-ecli...ubuntu-debian/
(not with the installer like indicated there https://wiki.debian.org/Eclipse because I need a very new version of eclipse; not the debian standard one).
Looks promising till now (installed, it starts.. few things not working but I will get it).


All times are GMT -5. The time now is 07:24 PM.