# Pre-build or Locally-build 3dSlicer under Ubuntu 16.04 does NOT start: Failed to obtain launcher executable name!

**URL:** <https://discourse.slicer.org/t/pre-build-or-locally-build-3dslicer-under-ubuntu-16-04-does-not-start-failed-to-obtain-launcher-executable-name/2322>\
**Category:** Support\
**Tags:** build, bug\
**Created:** [March 15, 2018, 11:44am UTC](https://discourse.slicer.org/t/pre-build-or-locally-build-3dslicer-under-ubuntu-16-04-does-not-start-failed-to-obtain-launcher-executable-name/2322 "2018-03-15T11:44:29Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![jcfr](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jcfr/32/17825_2.png) [@jcfr](https://discourse.slicer.org/u/jcfr)\
**Post date:** [March 15, 2018, 7:23pm UTC](https://discourse.slicer.org/t/pre-build-or-locally-build-3dslicer-under-ubuntu-16-04-does-not-start-failed-to-obtain-launcher-executable-name/2322/8 "2018-03-15T19:23:10Z")

</div>

The error message indicates that the following code path (associated with the function `ctkAppLauncherPrivate::extractLauncherNameAndDir`) is executed in the launcher:

> <https://github.com/commontk/AppLauncher/blob/48b4ae63168e3930e7a4d48da705c27c557e5564/Base/ctkAppLauncher.cpp#L382-L387>

The input to that function is obtained here using `argv[0]`:

> <https://github.com/commontk/AppLauncher/blob/48b4ae63168e3930e7a4d48da705c27c557e5564/Main.cpp#L72-L78>

I suspect that on newer Ubuntu, the path the program needs to be obtained from `/proc` as it is done in qapplication:

> <https://github.com/qt/qtbase/blob/17b73b0d2b8e0d643bdf13b543cc23d657a4b330/src/corelib/kernel/qcoreapplication.cpp#L2259-L2266>

Few days ago, within Slicer itself (and not the launcher) the needed a function allowing to get the path of the application on all platforms before instantiating the application … but decided to implement a workaround in 27030

Look like the time has come to have such a function.

---

_[View the full topic](https://discourse.slicer.org/t/pre-build-or-locally-build-3dslicer-under-ubuntu-16-04-does-not-start-failed-to-obtain-launcher-executable-name/2322)._
