Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Unsupported Software
  • Search

How can I make Eclipse IDE available to non-root users?

This forum covers all Gentoo-related software not officially supported by Gentoo. Ebuilds/software posted here might harm the health and stability of your system(s), and are not supported by Gentoo developers. Bugs/errors caused by ebuilds from overlays.gentoo.org are covered by this forum, too.
Post Reply
Advanced search
7 posts • Page 1 of 1
Author
Message
Rockman8
n00b
n00b
Posts: 39
Joined: Tue Sep 19, 2023 3:08 am

How can I make Eclipse IDE available to non-root users?

  • Quote

Post by Rockman8 » Tue May 21, 2024 5:45 am

=======================================================================

[SOLVED]

=======================================================================

I just downloaded eclipse and decompressed the file in my home folder and then moved to /opt, changed owner to root:root

Code: Select all

chown -R root:root /opt/eclipse/
The program will run just fine as root but other than that eclipse will run with missing edit menu bar and some errors on console regarding

Code: Select all

gdk_wayland_window_set_dbus_properties_libgtk_only: assertion 'GDK_IS_WAYLAND_WINDOW (window)' failed
How can I make Eclipse IDE available to non-root users?

Thanks in advance.

---edit---

Also found out that the installer will give the same errors when running as a non-root user.

=======================================================================
SOLUTION

Just remove the global menu Global Menu Widget

=======================================================================
Last edited by Rockman8 on Sat Jul 06, 2024 12:37 pm, edited 3 times in total.
Top
BurningMemory
n00b
n00b
Posts: 61
Joined: Tue Jan 17, 2023 2:33 am

Re: How can I make Eclipse IDE available to non-root users?

  • Quote

Post by BurningMemory » Tue May 21, 2024 6:00 am

Rockman8 wrote:How can I make Eclipse IDE available to non-root users?
Do you have to move the contents of the archive to /opt?
If not, you can create a directory in your home folder for the software,
put it there and just use it like that. If you need to use it on multiple user
accounts, then just change the directory perms to something like mode 755.
Also, make sure you never run such software as root. It's not only unnecessary,
but can be potentially dangerous.
Top
Goverp
Advocate
Advocate
User avatar
Posts: 2402
Joined: Wed Mar 07, 2007 6:41 pm

  • Quote

Post by Goverp » Tue May 21, 2024 7:26 am

You should not be running Eclipse as root.

I think what you are trying to achieve is a single Eclipse installation shared by multiple users. That is possible - you can find the details on the Eclipse web site - but it's no longer as simple as installing to /opt. The problem is that Eclipse is mostly a framework with plug-ins, and it supports different plug-ins by user. This means that in theory your shared setup is now customized by user, and ends up with different versions of plugins sprayed across /opt and various /home directories. Fine until you want to upgrade the /opt version when the user's plug-ins might no longer be at the required level. So the recommendation now is to install once per user instead, so everything is in /home.

The trouble with this thinking is that for many PC setups there's only a few userids and they're all the same person using id's to split up projects or responsibilities or security or something, in which case it seems logical to share code in /opt. But you still might hit issues with /opt if you only use some of the userids very occasionally - e.g. a finished project; when you revisit it years later its Eclipse is broken.
Greybeard
Top
Banana
Moderator
Moderator
User avatar
Posts: 2366
Joined: Fri May 21, 2004 12:02 pm
Location: Germany
Contact:
Contact Banana
Website

  • Quote

Post by Banana » Tue May 21, 2024 9:06 am

I just downloaded eclipse and decompressed the file in my home folder and then moved to /opt, changed owner to root:root
Have a look if in /opt are already other folders which belong to other applications. Google oder Microsoft are ones which use this folder too.
They are installed by portage and every user can use it. Compare their rights and modify the directory you have created manually
Forum Guidelines

PFL - Portage file list - find which package a file or command belongs to.
My delta-labs.org snippets do expire
Top
sMueggli
l33t
l33t
Posts: 627
Joined: Sat Sep 03, 2022 9:22 am

  • Quote

Post by sMueggli » Tue May 21, 2024 3:04 pm

I recommend that every user has its own Eclipse in his home folder. This way every user can customise the configuration and plugins. And if someone breaks Eclipse or plugins, the other users are not affected.
Top
Rockman8
n00b
n00b
Posts: 39
Joined: Tue Sep 19, 2023 3:08 am

  • Quote

Post by Rockman8 » Tue May 21, 2024 6:03 pm

OK, just removed the eclipse folder from /opt, since I messed with the group:owner, so I just decompressed again on /home folder.

Still got the same issues and the same warnings too:
  • Missing edit menu

Code: Select all

(Eclipse:32088): Gdk-CRITICAL **: 14:40:45.840: gdk_wayland_window_set_dbus_properties_libgtk_only: assertion 'GDK_IS_WAYLAND_WINDOW (window)' failed
When run as root it runs fine no issues, but even though I changed the folder from /opt to /home still got the same issues.

Perhaps something that the root may access but the user is not allowed to?

Also the same error happens when running the installer as a non-root user.
Top
Rockman8
n00b
n00b
Posts: 39
Joined: Tue Sep 19, 2023 3:08 am

Solution

  • Quote

Post by Rockman8 » Sat Jun 01, 2024 3:58 pm

Just removed Global Menu widget, no more errors on console and the menu bar is back.
Top
Post Reply

7 posts • Page 1 of 1

Return to “Unsupported Software”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy