文件操作 - tweak_group_desktop.py
返回文件管理
返回主菜单
删除本文件
文件: /usr/lib/python2.7/site-packages/gtweak/tweaks/tweak_group_desktop.py
编辑文件内容
# -*- coding: utf-8 -*- # Copyright (c) 2011 John Stowers # SPDX-License-Identifier: GPL-3.0+ # License-Filename: LICENSES/GPL-3.0 from gtweak.widgets import ListBoxTweakGroup, GSettingsSwitchTweak, Title from gtweak.gshellwrapper import GnomeShellFactory _shell = GnomeShellFactory().get_shell() _shell_is_classic = False if (not(_shell is None)): _shell_is_classic = _shell.mode == 'classic' dicons = None if (not(_shell_is_classic)): dicons = GSettingsSwitchTweak(_("Show Icons"),"org.gnome.desktop.background","show-desktop-icons") # show-desktop-icons is in gsettings-desktop-schemas, but it won't actually # *work* unless we have a version of Nautilus that still has the ability to # draw the desktop; use one of the settings that was present in that version # to probe for it. home = GSettingsSwitchTweak(_("Home"),"org.gnome.nautilus.desktop", "home-icon-visible", depends_on=dicons, schema_filename="org.gnome.nautilus.gschema.xml") TWEAK_GROUPS = [] if home.loaded: TWEAK_GROUPS.append(ListBoxTweakGroup(_("Desktop"), Title(_("Icons on Desktop"), "", uid="title-theme", top=True), dicons, home, GSettingsSwitchTweak(_("Network Servers"),"org.gnome.nautilus.desktop", "network-icon-visible", depends_on=dicons, schema_filename="org.gnome.nautilus.gschema.xml"), GSettingsSwitchTweak(_("Trash"),"org.gnome.nautilus.desktop", "trash-icon-visible", depends_on=dicons, schema_filename="org.gnome.nautilus.gschema.xml"), GSettingsSwitchTweak(_("Mounted Volumes"),"org.gnome.nautilus.desktop", "volumes-visible", depends_on=dicons, schema_filename="org.gnome.nautilus.gschema.xml"), ))
修改文件时间
将文件时间修改为当前时间的前一年
删除文件