Disable KDE's preview function-general Linux technology-Linux technology and application information. For more information, see the following. KDE has a file preview function, which is to place the mouse over a file icon. After a while, a small window will appear, showing part of the file content, but unfortunately, this item does not support Chinese characters. That is to say, Chinese characters in the file cannot be seen. In addition, the current Linux version does not support Chinese, because I do not know Chinese support, so I do not know how to modify it, but I found a method that can block this function, hey.
First, the file size can be blocked. You can add a segment in the $ HOME/. kde/share/config/kdeglobals file:
[PreviewSettings]
MaximumSize = 0
This means that as long as the file size is greater than the specified MaximumSize value, no preview will be performed, and any file will be larger than 0 bytes, thus blocking this function. After blocking, place the mouse over the file icon. Only the attributes (name, type, size, permission, etc.) of the file and the icon of a file are displayed, which is the same as that of the directory.
In fact, this setting can also be modified in "preview and metadata" in the Konqueror setting, that is, the "Maximum file size", but cannot be changed to 0. A slightly smaller file cannot be blocked. But you can change it here.
However, this method will cause all files (not all, but most of them) to be unable to be previewed. We may also want KDE to preview image files, it is better to use the following method.
In the/usr/share/services/directory, there are some special desktop files that can act as filters, that is, some file types, you can configure whether these files take effect to preview a certain type of files.
Specifically, MimeTypes indicates the file type. For example, text/plain indicates a plain text file. The specific file type can be obtained from the xml file in the/usr/share/mime directory, for example,/usr/share/mime/text/plain. xml is the xml file of a plain text file.
Therefore, you can add a line of "Hidden = true" to the desktop file (textthumbnail. desktop) of a plain text file, just like hiding a common desktop file.
After this change, the plain text file will not be previewed. Other files, such as HTML files and image files, can also be previewed.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service