Check-in [fdad9d9430]
Overview
Comment: | Guard non-writeable gtk_dir / extra statusbar info. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
fdad9d94306e5847e791ee5a26cbb204 |
User & Date: | Oliver on 2016-12-23 21:36:13 |
Other Links: | manifest | tags |
Context
2016-12-23
| ||
21:37 | Unified the definitions for Make-Shortcut in @tasks. Moved the Python 2.7.13 GUID to $Python GUID, since it is used in regkey and Check-Pythoninstall. For the uninstall dismissed the batch variable %UsrFolder%, since it was used only once and can be derived from %installFolder%. This had also to be corrected in the uninstall script generation in install_python_gtk.ps1. In Resetprefs.cmd I changed the text to reflect that also the downloaded Gtk themes would be deleted. In uninstall.cmd I changed the rd command for the themes folder to use the correct rd syntax. check-in: de4013065e user: Oliver tags: trunk | |
21:36 | Guard non-writeable gtk_dir / extra statusbar info. check-in: fdad9d9430 user: Oliver tags: trunk | |
21:33 | Fix missing url: plugin meta. Display bitrate and length. Fix more mutagen extraction faults. check-in: 3c3ec8e447 user: Oliver tags: trunk | |
Changes
Modified contrib/theme_installer.py from [eee586dd62] to [6f23360bad].
1 2 3 4 5 6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | - + | # encoding: UTF-8 # api: streamtuner2 # title: Gtk2 theme installer # description: Shows themes in the bookmarks pane for installation # type: feature # category: ui |
︙ | |||
56 57 58 59 60 61 62 | 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 | - + - | class theme_installer(object): # plugin info module = "theme_installer" meta = plugin_meta() category = "themes" theme_dir = conf.dir + "/themes/" |
︙ | |||
90 91 92 93 94 95 96 | 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 | - + | def apply_theme(self, now=True): if conf.theme == "default": return # look if theme exists fn = "%s%s/%s" % (self.theme_dir, conf.theme, "gtk-2.0/gtkrc") if not os.path.exists(fn): return |
︙ | |||
156 157 158 159 160 161 162 | 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 | - + - + - - - - - + + + + + + + + + - - + + - + | zip = self.theme_dir + os.path.basename(row["url"]) #if not os.path.exists(zip): with open(zip, "wb") as f: f.write(ahttp.get(row["url"], binary=True)) # extract z = zipfile.ZipFile(zip) z.extractall(self.theme_dir) |
︙ |