提交到软件中心的应用程序必须从 /opt 目录运行吗?

Cos*_*les 4 filesystem packaging application-development application-submission

我读了这个问题,但我更困惑了。

我不清楚应用程序是否必须在 /opt 或 out /opt 中:$

那么,我可以使用 /usr 吗?如果应用程序在 /usr 上,它会被拒绝吗?

ish*_*ish 12

你可能对语言感到困惑;它们的意思都一样,即:

"run out of" == "run in" == "installed in" (all in /opt)
Run Code Online (Sandbox Code Playgroud)

例外情况是:

  • 该标准文件中/usr/share/doc/<packagename>是允许的,如copyrightchangelogexamples
  • .desktop 文件安装在标准位置/usr/share/applications,但必须在extras-其名称中添加前缀。示例:extras-foobar.desktop对于名为foob​​ar的包。
  • 镜头和瞄准镜安装在标准位置,但必须在extras-其名称中添加前缀。示例:extras-unity-lens-foobar.lens对于名为unity-lens-foobar的包。