我刚刚意识到404:: command not found每次打开终端时都会收到消息。我不记得在收到这条消息之前我安装了什么:
我在任何 bash 的启动文件中都找不到它:
$ grep 404 -H ~/.bashrc ~/.profile ~/.bash_profile ~/.bash.login \
~/.bash_aliases /etc/bash.bashrc /etc/profile \
/etc/profile.d/* /etc/environment 2> /dev/null
$
Run Code Online (Sandbox Code Playgroud)
我也跑了PS4='${BASH_SOURCE}:${LINENO} ' bash -lxe,你可以在这里找到完整的输出。
我刚刚安装了 Ubuntu 12.04,但使用旧的 11.10/home分区作为/home12.04的点。(更新:换句话说,12.04 应用程序最有可能使用我旧的 11.10 应用程序配置。实际上它们是。)
奇怪的是,我似乎无法更改gnome-screenshot. 我试图更改从保存的位置~/Pictures,以~/Pictures/Screenshots在第一张截图。但是在第二个截图中,保存的目录仍然是~/Picture.
这是gconf.xml:
petra@petra-laptop:~$ cat .gconf/apps/gnome-screenshot/%gconf.xml
<?xml version="1.0"?>
<gconf>
<entry name="last_save_directory" mtime="1335771751" type="string">
<stringvalue>file:///home/petra/Pictures/Screenshots</stringvalue>
</entry>
<entry name="border_effect" mtime="1335771746" type="string">
<stringvalue>none</stringvalue>
</entry>
<entry name="delay" mtime="1335771746" type="int" value="0"/>
<entry name="include_pointer" mtime="1335771746" type="bool" value="false"/>
<entry name="include_border" mtime="1335771746" type="bool" value="true"/>
</gconf>
Run Code Online (Sandbox Code Playgroud)
屏幕截图应该使用last_save_directory,对吗?(更新:unix 时间戳显示1335771751这意味着Mon 30 Apr 2012 02:42:31 PM WIT GMT+7我安装 12.04 后几个小时,所以这应该意味着gnome-screenshot …