最近改用PcManFM作为文件管理器,但是有一直有一个很奇怪的问题,
根本无法移动包含任何中文文字的文件,只有文件名全部是英文的文件没有这个问题。
即使把loacle改成zh_CN.utf8也是一样的。
而且很奇怪,pcmanfm的菜单无法变成中文的,而使用
pcmanfm-mod菜单可以变成中文,而且复制文件没有什么问题。
不知道有谁碰到这个问题?
PcManFM无法移动名字包含中文的文件的问题
-
- 帖子: 156
- 注册时间: 2006-01-02 3:15
-
- 帖子: 48
- 注册时间: 2008-10-16 21:20
Re: PcManFM无法自动挂载U盘以及无法移动中文文件的问题
不知道你用的是udev还是hal,
如果是udev,而且用udisk来挂载,下面有一个办法可以永久解决这个权限问题
在下面这个文件中,/usr/share/polkit-1/actions/org.freedesktop.udisks.policy
<action id="org.freedesktop.udisks.filesystem-mount">
<description>Mount a device</description>
<message>Authentication is required to mount the device</message>
<defaults>
<allow_any>no</allow_any> ####修改为: <allow_any>yes</allow_any>
<allow_inactive>no</allow_inactive>
<allow_active>yes</allow_active>
</defaults>
</action>
..............
<action id="org.freedesktop.udisks.filesystem-unmount-others">
<description>Unmount a device mounted by another user</description>
<message>Authentication is required to unmount devices mounted by another user</message>
<defaults>
<allow_any>no</allow_any> ####修改为: <allow_any>yes</allow_any>
<allow_inactive>no</allow_inactive>
<allow_active>auth_admin</allow_active>
</defaults>
</action>
其中有如下两行:<allow_any>no</allow_any>,
把这两行中的no改为yes,也就是:<allow_any>yes</allow_any>。
然后就可以挂载了,不需要权限。
如果是udev,而且用udisk来挂载,下面有一个办法可以永久解决这个权限问题
在下面这个文件中,/usr/share/polkit-1/actions/org.freedesktop.udisks.policy
<action id="org.freedesktop.udisks.filesystem-mount">
<description>Mount a device</description>
<message>Authentication is required to mount the device</message>
<defaults>
<allow_any>no</allow_any> ####修改为: <allow_any>yes</allow_any>
<allow_inactive>no</allow_inactive>
<allow_active>yes</allow_active>
</defaults>
</action>
..............
<action id="org.freedesktop.udisks.filesystem-unmount-others">
<description>Unmount a device mounted by another user</description>
<message>Authentication is required to unmount devices mounted by another user</message>
<defaults>
<allow_any>no</allow_any> ####修改为: <allow_any>yes</allow_any>
<allow_inactive>no</allow_inactive>
<allow_active>auth_admin</allow_active>
</defaults>
</action>
其中有如下两行:<allow_any>no</allow_any>,
把这两行中的no改为yes,也就是:<allow_any>yes</allow_any>。
然后就可以挂载了,不需要权限。
-
- 帖子: 156
- 注册时间: 2006-01-02 3:15
- hakie
- 帖子: 270
- 注册时间: 2008-04-30 12:14
- photor
- 论坛版主
- 帖子: 11004
- 注册时间: 2008-04-26 12:41