Making a shared library executable outside the shell

Patrick O'Callaghan pocallaghan at gmail.com
Fri Feb 24 00:27:21 UTC 2012


On Thu, 2012-02-23 at 08:33 -0700, T.C. Hollingsworth wrote:
> On Thu, Feb 23, 2012 at 2:05 AM, Christopher Svanefalk
> <christopher.svanefalk at gmail.com> wrote:
> > I have built Chromium from source, and currently the only way to start the
> > browser is to execute the shared library file 'chrome' from shell.
> >
> > I would like to be able to launch it from the normal menu like my other
> > applications, but I do not really know how to do this. Simply creating a
> > symlink in bin breaks dependencies (browser crashes due to inability to load
> > related libraries), and I am not really good enough at shell-work to figure
> > out what else could be done. It is further not possible to launch the file
> > from a normal file browser (system reports that it has no application for
> > handling shared libraries).
> >
> > Any solution to this?
> 
> The Chromium source distribution should contain a shell script to
> start Chromium.  Google's official builds include this in
> /opt/google/chrome and hardlink it to /usr/bin/google-chrome to start
> the browser.  This is done as part of the build process even for
> non-official builds, so it's very strange you don't have it.
> 
> You can find the wrapper script in the Chromium source distribution here:
> http://src.chromium.org/viewvc/chrome/trunk/src/chrome/tools/build/linux/chrome-wrapper?view=markup
> 
> Simply copy it to the main Chrome directory and then hardlink it to /usr/bin.

I *think* the OP is asking how to run Chromium from a desktop menu, but
it's hard to be sure. And he doesn't mention which desktop.

poc



More information about the users mailing list