updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / thunderbird-awn-notif / python2-and-systemwide-install.patch
blobbb64c2ddd376f4eca5d659ad67ac60b94f3467ca
1 --- content/awn-notif.py.orig 2010-08-02 00:01:12.000000000 +0200
2 +++ content/awn-notif.py 2011-06-15 16:11:06.000000000 +0200
3 @@ -1,4 +1,4 @@
4 -#!/usr/bin/env python
5 +#!/usr/bin/env python2
7 ###########################
8 # Awn-notif python script #
9 --- content/overlay.js.orig 2010-08-02 00:01:12.000000000 +0200
10 +++ content/overlay.js 2011-06-15 16:12:17.000000000 +0200
11 @@ -87,15 +87,8 @@
12 var file = Components.classes["@mozilla.org/file/local;1"]
13 .createInstance(Components.interfaces.nsILocalFile);
15 - const DIR_SERVICE = new
16 - Components.Constructor("@mozilla.org/file/directory_service;1","nsIProperties");
17 - try {
18 - path=(new DIR_SERVICE()).get("ProfD", Components.interfaces.nsIFile).path;
19 - } catch (e) {
20 - alert(AwnNotif.error);
21 - }
22 - path = path + "/extensions/{761e13a8-9891-ef56-a4ee-988fa1bd8bbd}/content/awn-notif.py";
23 - file.initWithPath("/usr/bin/python");
24 + path = "/usr/lib/thunderbird-5.0/extensions/{761e13a8-9891-ef56-a4ee-988fa1bd8bbd}/content/awn-notif.py";
25 + file.initWithPath("/usr/bin/python2");
26 if (x == 1){
27 var args = [path, x, AwnNotif.oneMail];
28 } else {