如何更改默认文件管理器为Nautilus
Tofloor
poster avatar
w_w
deepin
2016-11-07 06:23
Author
如题,Nautilus是在deepin store里面安装的。希望能够更改默认文件管理器,打开桌面上面的文件夹能用更改后的文件管理器。谢谢
Reply Favorite View the author
All Replies
1 / 2
To page
jingle
deepin
2016-11-07 17:02
#1
$ xdg-mime default dde-file-manager.desktop inode/directory
Reply View the author
w_w
deepin
2016-11-08 18:50
#2
谢谢管理员的答复。我试过了,但是没有效果。
我执行的命令:
$ xdg-mime default org.gnome.Nautilus.desktop inode/directory
$ sudo xdg-mime default org.gnome.Nautilus.desktop inode/directory
还尝试了直接修改/usr/share/applications/defaults.list
添加了inode/directory=org.gnome.Nautilus.desktop也不行
org.gnome.Nautilus.desktop是在/usr/share/applications目录下的Nautilus的desktop configuration file
我想的是不管是桌面上的文件夹还是dock里面的垃圾桶,还是chrome里面的show in folder都是直接打开nautilus
Reply View the author
iceyer
deepin
2016-11-08 19:05
#3
https://bbs.deepin.org/post/45319
谢谢管理员的答复。我试过了,但是没有效果。
我执行的命令:
$ xdg-mime default org.gnome.Nautilus.desk ...

桌面因为修复一些bug直接写死了用dde-file-manager打开,你可以自己写一个nautinus的desktop文件放桌面试试

[Desktop Entry]
Type=Application
Name=Computer
Name[zh_CN]=计算机
Comment=Show storage of this computer.
GenericName=Computer
Icon=computer
Terminal=false
Categories=System;
Exec=nautilus computer:///
OnlyShowIn=Deepin;
X-AppStream-Ignore=true
Reply View the author
iceyer
deepin
2016-11-08 19:06
#4
如果还是不行,你可以直接renmae一下 /usr/bin/dde-file-manager
Reply View the author
moonlimb
deepin
2016-11-08 19:17
#5
https://bbs.deepin.org/post/45319
谢谢管理员的答复。我试过了,但是没有效果。
我执行的命令:
$ xdg-mime default org.gnome.Nautilus.desk ...

为什么要搞这么复杂呢?
我用的也是nautilus,直接卸载了自带的深度文件管理器就可以了吧?
Reply View the author
iceyer
deepin
2016-11-08 19:22
#6
https://bbs.deepin.org/post/45319
为什么要搞这么复杂呢?
我用的也是nautilus,直接卸载了自带的深度文件管理器就可以了吧? ...

会把dde桌面环境卸载的。。。
Reply View the author
moonlimb
deepin
2016-11-08 19:30
#7
https://bbs.deepin.org/post/45319
会把dde桌面环境卸载的。。。

是吗?我这么做,但是没有发现有什么不对劲的地方哦。
Reply View the author
dragondjf
deepin
2016-11-08 19:30
#8
在~/.config/mimeapps.list的
[Default Applications]字段下修改
inode/directory=org.gnome.Nautilus.desktop
即可更改默认的文件管理器
Reply View the author
w_w
deepin
2016-11-09 04:06
#9
https://bbs.deepin.org/post/45319
在~/.config/mimeapps.list的
[Default Applications]字段下修改
inode/directory=org.gnome.Nautilus.desk ...

多谢,解决了问题!原来配置文件在这儿
Reply View the author
tr******[email protected]
deepin
2016-11-09 21:36
#10
马。。。
Reply View the author
summving
deepin
2016-11-10 03:21
#11
https://bbs.deepin.org/post/45319
会把dde桌面环境卸载的。。。

为嘛会这样子的,卸载软件不能同时保留依赖么。。
Reply View the author
deepincmg
deepin
2017-05-07 01:45
#12
https://bbs.deepin.org/post/45319
在~/.config/mimeapps.list的
[Default Applications]字段下修改
inode/directory=org.gnome.Nautilus.desk ...

这个办法可以改   可是会自动改回来深度文件管理器  大家的会吗
Reply View the author
Breeze
deepin
2017-05-07 23:27
#13
https://bbs.deepin.org/post/45319
这个办法可以改   可是会自动改回来深度文件管理器  大家的会吗

写个bash脚本,开机自启动的时候默认把,.config/mimeapps.list里面所有的dde-file-manager字段替换成“org.gnome.Nautilus”就可以了
Reply View the author
Breeze
deepin
2017-05-07 23:37
#14
https://bbs.deepin.org/post/45319
这个办法可以改   可是会自动改回来深度文件管理器  大家的会吗

我重试了一下,把所有改完后,重启,并没有恢复成dde-file-manager,
系统版本:15.4
Reply View the author
deepincmg
deepin
2017-05-09 18:27
#15
https://bbs.deepin.org/post/45319
写个bash脚本,开机自启动的时候默认把,.config/mimeapps.list里面所有的dde-file-manager字段替换成“or ...

写bash脚本对我是陌生的   和win里的 bat  差不多吗
你能不能把这个脚本里的文字贴上来啊?谢谢    现在还是会自动改回深度文件管理器
Reply View the author
kaen
deepin
2017-05-09 20:06
#16
一怒之下把dde-filemanager卸载了
Reply View the author
152******80
Advanced Packager
2017-05-09 20:35
#17
安装nautilus后删除自带的,稳稳的没什么问题
sudo apt-get purge dde-file-manager
Reply View the author
deepincmg
deepin
2017-05-09 23:26
#18
https://bbs.deepin.org/post/45319
安装nautilus后删除自带的,稳稳的没什么问题
sudo apt-get purge dde-file-manager

nautilus   右键菜单怎么没新建文本  
Reply View the author
Breeze
deepin
2017-05-12 06:53
#19
https://bbs.deepin.org/post/45319
写bash脚本对我是陌生的   和win里的 bat  差不多吗
你能不能把这个脚本里的文字贴上来啊?谢谢    现在还 ...
  1. perl -p -i -e "s/dde-file-manager/org.gnome.Nautilus/g" ~/.config/mimeapps.list
Copy the Code

简单一点的话,把这一行写入~/.bashrc里面,
因为deepin终端的雷神模式是开机启动的,所以会自动执行这一条,
就可以完成替换。
Reply View the author
wangyong
deepin
2017-05-12 06:56
#20
https://bbs.deepin.org/post/45319
简单一点的话,把这一行写入~/.bashrc里面,
因为deepin终端的雷神模式是开机启动的,所以会自动执行这 ...

你们都是高人。 ;)
Reply View the author
1 / 2
To page