Skip to content

Instantly share code, notes, and snippets.

@ccprog
ccprog / XletSettingsWidgets.patch
Last active May 16, 2016 18:09
Cinnamon applet settings: display a setting value by choosing an option
--- /usr/share/cinnamon/cinnamon-settings/bin/XletSettingsWidgets.py
+++ /usr/share/cinnamon/cinnamon-settings/bin/XletSettingsWidgets_live_update.py
@@ -50,6 +50,7 @@
self.handler = self.file_monitor.connect("changed", self.on_file_changed)
self.file_changed_timeout = None
self.resume_timeout = None
+ self.monitor_exeption = None
def create(self, key, setting_type, uuid):
try:
@ccprog
ccprog / msgmerge.js
Created June 3, 2014 15:44
A grunt task for gettext msgmerge
module.exports = function(grunt) {
// use `msginit -i my-text.pot -l <ll_CC> -o my-text-<ll_CC>.po` to start new translations
grunt.registerMultiTask('msgmerge', function() {
var options = this.options({
text_domain: 'messages',
template: './',
});