我是Ubuntu的新手,我在另一个线程中看到,要在默认编辑器(gedit )中打开一个文件,我需要运行xdg-open,但出于某种原因,当我运行命令xdg-open app.js时,我得到了一个bash: xdg-open: command not found通知。为什么会这样呢?
根据注释的请求,echo $PATH的输出是:
/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/efiminzer/.local/bin:/home/efiminzer/bin发布于 2015-12-01 19:27:04
安装/重新安装包xdg-utils:
sudo apt-get install --reinstall xdg-utils/usr/bin/xdg-open是这个包的一部分。
https://askubuntu.com/questions/704712
复制相似问题