Ubuntu – Must apps submitted to the Software Center run from the /opt directory

application-developmentapplication-submissionfilesystempackaging

I read this question, but I'm more confused yet.

It's not clear for me if the app must be in the /opt or out /opt :$

Then, can I use the /usr? Will be the app rejected if it's on /usr?

Best Answer

You may be confused by the language; they all mean the same, ie:

"run out of" == "run in" == "installed in" (all in /opt)

The exceptions are:

  • The standard files in /usr/share/doc/<packagename> are permitted, such as copyright, changelog, and examples.
  • The .desktop file is installed in the standard location /usr/share/applications, but must have the prefix extras- added to its name. Example: extras-foobar.desktop for a package named foobar.
  • Lenses and scopes are installed in the standard locations, but must have the prefix extras- added to their names. Example: extras-unity-lens-foobar.lens for a package named unity-lens-foobar.