Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 20740 - Tiny wrapper for eclipse to use per user workbenches
Summary: Tiny wrapper for eclipse to use per user workbenches
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Karl Trygve Kalleberg (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-10 05:58 UTC by Daniel Seyffer
Modified: 2003-10-06 01:55 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
/usr/local/bin/eclipse (eclipse,924 bytes, text/plain)
2003-05-10 06:02 UTC, Daniel Seyffer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Seyffer 2003-05-10 05:58:52 UTC
Hi,

Eclipse always seems to create workbench directories for the current user in the
current dir (i.e. /opt/eclipse/workbench if you start eclipse by "cd
/opt/eclipse; ./eclipse").

So once you started eclipse as user1, you can not start it as user2 afterwards
without first deleting the workbench for user1.

To make things a bit more comfortable/transparent I wrote this tiny wrapper
script which one can put under /usr/local/bin to have a per-user-workbench under
"/home/<user>/.eclipse/workbench" instead of /opt/eclipse/workbench.

Maybe I am just tooo dumb and there is a much better/more elegant way handling
this. But I just needed a quick-and-dirty "works for me" solution and so I
tought that providing this here might be usefull... ;-)

Regards,
Daniel


Reproducible: Always
Steps to Reproduce:
1. as root or user1 cd /opt/eclipse (first time use)
2. ./eclipse --> workbench created
3. now as ordinary user2: cd /opt/eclipse
4. ./eclipse --> error message. 
(naturally you can't use the existing workdir created for root, because of
permissions

--> Workbenches are not created individually for every user but always as
/opt/eclipse/workbench. So they should IMHO reside in every users home...



emerge -s eclipse:

*  dev-util/eclipse-SDK
      Latest version available: 2.1
      Latest version installed: [ Not Installed ]
      Size of downloaded files: 62,742 kB
      Homepage:    http://www.eclipse.org/
      Description: Eclipse Tools Platform

*  dev-util/eclipse-cdt-bin
      Latest version available: 20030501
      Latest version installed: [ Not Installed ]
      Size of downloaded files: 2,155 kB
      Homepage:    http://www.eclipse.org
      Description: Eclipse Tools Platform

*  dev-util/eclipse-ftp-webdav-bin
      Latest version available: 2.0
      Latest version installed: [ Not Installed ]
      Size of downloaded files: 615 kB
      Homepage:    http://www.eclipse.org
      Description: Eclipse FTP and WebDAV Tool

*  dev-util/eclipse-jdt-bin
      Latest version available: 2.1
      Latest version installed: 2.1
      Size of downloaded files: 11,200 kB
      Homepage:    http://www.eclipse.org
      Description: Eclipse Tools Platform

*  dev-util/eclipse-platform-bin
      Latest version available: 2.1
      Latest version installed: 2.1
      Size of downloaded files: 17,678 kB
      Homepage:    http://www.eclipse.org
      Description: Eclipse Tools Platform
Comment 1 Daniel Seyffer 2003-05-10 06:02:23 UTC
Created attachment 11749 [details]
/usr/local/bin/eclipse
Comment 2 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2003-10-05 14:37:06 UTC
This was committed along with the eclise-sdk-2.1.1.ebuild update, see #19317.
Comment 3 Daniel Seyffer 2003-10-06 01:55:13 UTC
nice, thanks! bug comments and feature list for #19317 sound very promising
too... :-))