文件管理器功能

来自 Arch Linux 中文维基
(重定向自File manager functionality

本文内容或本节内容已经过期。

原因: 请提供模板的第一个位置参数以概括原因。 (在Talk:文件管理器功能讨论)

本文或本节需要翻译。要贡献翻译,请访问简体中文翻译团队

附注: 请提供模板的第一个位置参数以更详细的指示。(在 Talk:文件管理器功能# 中讨论)

本文介绍扩展文件管理器功能的相关软件,特别是使用窗口管理器如Openbox的时候。还提供了在没有密码的情况下访问分区和可移动媒体的能力(如果受到影响)。

概要[编辑 | 编辑源代码]

注意: 安装后, 下面列出的软件包将自动由所有已安装且功能强大的文件管理器, 以及所有的桌面环境和/或窗口管理器提供

单独的文件管理器将不会提供完整的桌面环境如XfceKDE的那些用户习惯的特性和功能。这是因为需要额外的软件包才能使给定的文件管理器能够:

  • 显示和访问其他分区
  • 显示、挂载和访问可移动媒体(例如USB记忆棒,光盘和数码相机)
  • 启用或分享与其他已安装的操作系统的网络
  • 启用缩略图
  • 归档和提取压缩文件
  • 自动挂载可移动媒体

当文件管理器作为完整桌面环境的一部分安装时,通常会自动安装大多数的这些软件包。 因此,在为独立的窗口管理器安装文件管理器的情况下——就像窗口管理器本身一样——只提供基本的支持。那么用户必须确认要添加的特性和功能的性质和范围。

附加功能[编辑 | 编辑源代码]

这篇文章的某些内容需要扩充。

原因: 提到KDE文件管理器使用KIO替代GVFS进行挂载和其他功能 (在 Talk:文件管理器功能 中讨论)

特别是在使用或打算使用轻量级环境的地方,应当注意更多的文件管理器的特性和功能通常意味着使用更多的内存。参见udisks

挂载[编辑 | 编辑源代码]

  • gvfs: Gnome虚拟文件系统(gvfs)提供挂载和回收站功能。GVFS使用udisks2来提供挂载功能,是大多数文件管理器推荐的解决方案。
提示:对于某些文件管理器,安装软件包gaminAUR可能很管用。Gamin是一个文件和目录监控系统。

GVFS使用的文件夹:

  • /usr/lib/gvfs/包含gvfsd-*文件, 其中*表示支持各种文件系统类型。
  • /usr/share/gvfs/mounts/包含GVFS股灾规则。要使用自己的规则,请创建~/.gvfs/mounts

安装附加安装包通常遵循如下gvfs-* pattern模式,例如:

文件管理守护程序[编辑 | 编辑源代码]

第一种是简单地以守护进程daemon模式自动启动或运行已安装的文件管理器(即作为后台进程)。例如,在Openbox中使用PCManFM时,以下命令将添加到 ~/.config/openbox/autostart 文件中:

pcmanfm -d &

还需要在卷管理方面配置文件管理器本身(例如,当安装时检测到某些文件类型时,它将执行什么操作以及将启动哪些应用程序)。

提示:Most desktop environments will start the file manager in daemon mode by default so manual intervention will not be required in these use cases.

独立[编辑 | 编辑源代码]

Another option is to install a separate mount application. The advantages of using this are:

  • Less memory may be required to run as a background / daemon process than a file manager
  • It is not file manager specific, allowing them to be freely added, removed, and switched
  • gvfs may not have to be installed for mounting, lessening memory use.

网络[编辑 | 编辑源代码]

注意: It will also be necessary to enable Bluetooth and/or networking with Windows to enable the relevant file manager functionality in turn.

Windows 访问[编辑 | 编辑源代码]

If using gvfs-smb, to access Windows/CIFS/Samba file shares first open the file manager, and enter the following into the path name, changing <sever name> and <share name> as appropriate:

smb://<server name>/<share name>

Apple 访问[编辑 | 编辑源代码]

If using gvfs-afc, to access AFP files first open the file manager, and enter the following into the path name, changing <sever name> and <share name> as appropriate:

afp://<server name>/<share name>

缩略图预览[编辑 | 编辑源代码]

Some file managers may not support thumbnailing, even when the packages listed have been installed. Check the documentation for the relevant file manager.

Dolphin 和 Konqueror 以外的文件管理器[编辑 | 编辑源代码]

These packages apply to most file managers, such as PCManFM, SpaceFM, Thunar and xfeAUR. The exceptions are Dolphin and Konqueror, used in the KDE desktop environment.

Dolphin and Konqueror (KDE)[编辑 | 编辑源代码]

See Dolphin#File previews.

解压文件[编辑 | 编辑源代码]

To extract compressed files such as tarballs (.tar and .tar.gz) within a file manager, it will first be necessary to install a GUI archiver such as file-roller. See List of applications#Archiving and compression tools for further information. An additional package such as unzip must also be installed to support the use of zipped .zip files. Once an archiver has been installed, files in the file manager may consequently be right-clicked to be archived or extracted.

NTFS 读/写 支持[编辑 | 编辑源代码]

NTFS-3G 文章.

桌面通知[编辑 | 编辑源代码]

Some file managers make use of desktop notifications to confirm various events and statuses like mounting, unmounting and ejection of removable media.

在不同的文件系统上开启回收站功能 (外部驱动器)[编辑 | 编辑源代码]

本文或本章节的事实准确性存在争议。

原因: Should these folders not be created automatically? When is it necessary to create them manually?(在 Talk:文件管理器功能 中讨论)


Make trash directories .Trash-<uid> for each users on the top level of filesystems:

For example (mount point: /media/sdc1, uid: 1000, gid: 1000):

# mkdir /media/sdc1/.Trash-1000

and chown them:

# chown 1000:1000 /media/sdc1/.Trash-1000

故障排除[编辑 | 编辑源代码]

"Not Authorized" 尝试挂载驱动时[编辑 | 编辑源代码]

File managers using udisks require a polkit authentication agent. See polkit#Authentication agents.

访问分区所需的密码[编辑 | 编辑源代码]

The need to enter a password to access other partitions or mounted removable media will likely be due to the default permission settings of udisks2. More specifically, permission may be set to the root account only, not the user account. See Udisks#Configuration for details.

目录未在文件管理器中打开[编辑 | 编辑源代码]

You may find that an application that is not a file manager, Audacious for example, is set as the default application for opening directories — an application that specifies that it can handle the inode/directory MIME type in its desktop entry can become the default. You can query the default application for opening directories with the following command:

$ xdg-mime query default inode/directory

To ensure that directories are opened in the file manager, run the following command:

$ xdg-mime default my_file_manager.desktop inode/directory

where my_file_manager.desktop is the desktop entry for your file manager — org.gnome.Nautilus.desktop for example.

提示:If you want the change to be system-wide, run the command above as root or create/edit the following file:
/usr/share/applications/mimeapps.list
[Default Applications]
inode/directory=my_file_manager.desktop