“Dolphin4ubuntu”的版本间的差异
来自Ubuntu中文
(→面板-位置) |
(→桌面文件夹) |
||
第34行: | 第34行: | ||
<pre>sudo chmod 755 /usr/bin/nautilus</pre> | <pre>sudo chmod 755 /usr/bin/nautilus</pre> | ||
+ | ==面板-位置-计算机== | ||
+ | <pre>sudo vi /usr/share/applications/nautilus-computer.desktop</pre> | ||
+ | <pre>Exec=nautilus --no-desktop computer:</pre>替换为 | ||
+ | <pre>Exec=dolphin /</pre> | ||
==桌面文件夹== | ==桌面文件夹== |
2010年6月23日 (三) 22:03的最新版本
使Dolphin成为Ubuntu默认文件管理器
面板-位置
1.备份
sudo mv /usr/bin/nautilus /usr/bin/nautilus.real
2.重建
sudo gedit /usr/bin/nautilus
3.修改脚本
#!/bin/bash #zenity --info --text="${1}/${@}" #DEBUG if [ -n "${1}" ]; then if [ "${1:0:1}" == "/" ]; then dolphin "${1}" elif [ "${1}" == "--no-desktop" ]; then if [ -n "${2}" ]; then if [ "${2:0:7}" == "file://" ] || [ "${2:0:1}" == "/" ]; then dolphin "${2}" else nautilus.real "${2}" fi else dolphin fi else nautilus.real "${@}" fi else dolphin fi
4.权限
sudo chmod 755 /usr/bin/nautilus
面板-位置-计算机
sudo vi /usr/share/applications/nautilus-computer.desktop
Exec=nautilus --no-desktop computer:替换为
Exec=dolphin /