将应用程序安装到 ../share/applications/ 目录时出错

将应用程序安装到 ../share/applications/ 目录时出错

我尝试使用 Google 和 StackOverflow 搜索 Fsearch 应用程序的安装错误。我的理论是,错误源于桌面文件符号链接的默认位置发生变化。github 上的版本的构建说明:https://github.com/cboxdoerfer/fsearch/wiki/Build-instructions

sudo apt install git build-essential meson itstool libtool pkg-config intltool libicu-dev libpcre2-dev libglib2.0-dev libgtk-3-dev libxml2-utils
git clone https://github.com/cboxdoerfer/fsearch.git
cd fsearch
meson builddir
ninja -C builddir install
#####--------------output
ninja: Entering directory `builddir'
[0/1] Installing files.
Installing data/io.github.cboxdoerfer.FSearch.desktop to /usr/local/share/applications/io.github.cboxdoerfer.FSearch.desktop
Traceback (most recent call last):
  File "/usr/bin/meson", line 26, in <module>
    sys.exit(main())
  File "/usr/bin/meson", line 23, in main
    return mesonmain.run(sys.argv[1:], launcher)
  File "/usr/share/meson/mesonbuild/mesonmain.py", line 318, in run
    sys.exit(run_script_command(args[1:]))
  File "/usr/share/meson/mesonbuild/mesonmain.py", line 274, in run_script_command
    return cmdfunc(cmdargs)
  File "/usr/share/meson/mesonbuild/scripts/meson_install.py", line 393, in run
    do_install(datafilename)
  File "/usr/share/meson/mesonbuild/scripts/meson_install.py", line 212, in do_install
    install_targets(d)
  File "/usr/share/meson/mesonbuild/scripts/meson_install.py", line 330, in install_targets
    d.dirmaker.makedirs(outdir, exist_ok=True)
  File "/usr/share/meson/mesonbuild/scripts/meson_install.py", line 36, in makedirs
    os.makedirs(path, exist_ok=exist_ok)
  File "/usr/lib/python3.6/os.py", line 220, in makedirs
    mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/usr/local/share/applications'
FAILED: meson-install 
/usr/bin/python3 /usr/bin/meson --internal install /home/david/fsearch/builddir/meson-private/install.dat
ninja: build stopped: subcommand failed.

没有这个名字的目录。但是有一个目录,里面有桌面上显示的所有内容:以及更多内容:

# Second attempt...
sudo add-apt-repository ppa:christian-boxdoerfer/fsearch-stable
sudo apt install fsearch

获取带有放大镜图标的应用程序,但尝试运行它时会出现此对话框 在此处输入图片描述

david@davids:~/fsearch$ ls /usr/share/applications
activity-log-manager.desktop          libreoffice-xsltfilter.desktop
apport-gtk.desktop                    light-locker-settings.desktop
apturl.desktop                        logout.desktop
audacity.desktop                      masterpdfeditor5.desktop
bamf-2.index                          mimeinfo.cache
beersmith3.desktop                    monodoc-http.desktop
blueman-adapters.desktop              mono-runtime-common.desktop
blueman-manager.desktop               mono-runtime-terminal.desktop
bluetooth-sendto.desktop              mount-archive.desktop
lonmg list elided

所以我的问题是,我应该在 Fsearch 包的源代码或配置文件中查找哪里以将假定目标更改为 Ubuntu 18.04 的目标?

相关内容