LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 05-14-2020, 05:32 AM   #1
floppy_stuttgart
Senior Member
 
Registered: Nov 2010
Location: EU mainland
Distribution: Debian like
Posts: 1,155
Blog Entries: 5

Rep: Reputation: 107Reputation: 107
.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.
 
Old 05-14-2020, 05:52 AM   #2
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,312
Blog Entries: 3

Rep: Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722
Quote:
Originally Posted by floppy_stuttgart View Post
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.
 
Old 05-14-2020, 05:59 AM   #3
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
Sorry, discard this. Turbocaptalist already gave you all the relevant infos.

Last edited by shruggy; 05-14-2020 at 06:08 AM.
 
Old 05-14-2020, 12:38 PM   #4
floppy_stuttgart
Senior Member
 
Registered: Nov 2010
Location: EU mainland
Distribution: Debian like
Posts: 1,155

Original Poster
Blog Entries: 5

Rep: Reputation: 107Reputation: 107
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.

Last edited by floppy_stuttgart; 05-14-2020 at 01:32 PM.
 
Old 05-14-2020, 01:50 PM   #5
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
Quote:
Originally Posted by floppy_stuttgart View Post
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.

Last edited by shruggy; 05-14-2020 at 01:53 PM.
 
Old 05-14-2020, 02:35 PM   #6
floppy_stuttgart
Senior Member
 
Registered: Nov 2010
Location: EU mainland
Distribution: Debian like
Posts: 1,155

Original Poster
Blog Entries: 5

Rep: Reputation: 107Reputation: 107
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).
 
  


Reply

Tags
lxde



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Failed to execute child process "/usr/local/eclipse/eclipse" (No such file or directo raju k Linux - Newbie 1 06-07-2013 02:47 AM
In NFS server. I want to share directory but i dont want to share subdirectories. aashishdhabarde Linux - Server 1 01-16-2008 03:48 AM
hi i want to buy a new processor and i dont know if the one i want will work tyrant_dragon3000 Linux - Hardware 6 03-07-2007 07:00 PM
Mandrake Automatically Booting Dont want it to, want Windows, please help Anthony1uk Linux - Newbie 7 06-06-2005 05:57 AM
Put MDK 10 on friends comp, want to install ATI drivers. Dont want to FooBar it up! RHLinuxGUY Mandriva 8 07-20-2004 06:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 09:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration