RCP P2在只读安装的多用户环境中更新

时间:2012-06-17 01:41:46

标签: linux eclipse-rcp p2

我已经创建了一个Ubuntu软件包来安装我的RCP应用程序。已安装的文件由root拥有。用户是否可以随后通过P2安装更新?有关Eclipse multi-user installs的文档表明这可能与this question的答案一致。

但是,当我启动应用程序时,它不会像往常一样自动检查更新,而我在p2.inf中指定的更新站点未在“安装新软件...”对话框中列出

使用-configuration-data运行时选项没有帮助。

我可以通过运行sudo chown -R <my_username> /opt/<my_app_installation>来解决这个问题。当我随后启动应用程序时,它会在启动时正确检查更新,并且我的更新站点已在“安装新软件...”对话框中正确列出。当然我更希望将写入该安装目录的任何数据写入用户的主目录。


补充资料:

以下是仅在我的安装目录中显示的文件和文件夹列表 目录由<my_username>授予并且程序已运行。

/opt/<my_app_installation>/configuration/org.eclipse.core.runtime
/opt/<my_app_installation>/configuration/org.eclipse.equinox.app
/opt/<my_app_installation>/configuration/org.eclipse.osgi
/opt/<my_app_installation>/p2/org.eclipse.equinox.p2.engine/profileRegistry/profile.profile/1339896994308.profile.gz
/opt/<my_app_installation>/p2/org.eclipse.equinox.p2.engine/profileRegistry/profile.profile/.data/.settings/org.eclipse.equinox.p2.ui.sdk.prefs
/opt/<my_app_installation>/p2/org.eclipse.equinox.p2.engine/profileRegistry/profile.profile/.data/.settings/org.eclipse.equinox.p2.ui.sdk.scheduler.prefs
/opt/<my_app_installation>/p2/org.eclipse.equinox.p2.repository

更多实验结果:

即使有一个可写(chown'd)安装目录,当时没有文件放在那里 提供了-configuration $HOME/.my_app_files运行时选项。

2 个答案:

答案 0 :(得分:0)

我对此有一点想法,所以要去刺它。

这是你在找什么?

  

http://wiki.eclipse.org/Equinox/p2/Adding_Self-Update_to_an_RCP_Application

  

http://www.ralfebert.de/blog/eclipsercp/p2_updates_tutorial/

这些是关于如何在启动时使自动更新工作的教程。他们应该解决没有出现在列表中和安装目录出现空问题。

答案 1 :(得分:0)

对于共享安装,p2本身有很多限制。 AFAIK最新发布的Juno也没有显着改善。

但是Redhat的一个人正在使用RPM包进行p2安装,你可以在他的blog post中阅读他的进展。可以与Debian软件包共享工作和想法。