
Gmail Screenlet
Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net
A screenlet that shows your unread gmail message count , click on the message number to go to gmail.com.
by Helder Fraga aka Whise
Instalation
Put it in your /usr/local/share/screenlets and run it from there
13 years ago
v0.6 updated
version 5 has password encryption but is more laggy , delete your /home/***/.config/screenlets/gmail/default/ before intalling this one
fixed an error with the auto update
version 03 shows message count in the midle of the screenlet
13 years ago
v0.6 updated
version 5 has password encryption but is more laggy , delete your /home/***/.config/screenlets/gmail/default/ before intalling this one
fixed an error with the auto update
version 03 shows message count in the midle of the screenlet
iheartubuntu
10 years ago
http://tinyurl.com/68vs2cp
Best Regards, iheartubuntu
Report
konsumer
11 years ago
I modified the Mail library, and made it work. I am not sure how to get this into the main screenlet repo, so here is the code:
/usr/lib/python2.6/dist-packages/screenlets/plugins/Mail.py
I replaced the wget line in get_GMail_Num() with this:
f = urllib.urlopen("https://" + login + ":" + password + "@mail.google.com/mail/feed/atom")
This is a more python way to do it, and it follows redirects, etc. Much better method.
Now it works! Thanks for this great screenlet.
Report
pearluck
12 years ago
Report
supernovahq
12 years ago
Report
MTGap
12 years ago
Report
shawn87_double
12 years ago
Report
shawn87_double
12 years ago
1) close all gmail screenlets
2) go to /usr/share/screenlets and remove the Gmail directory:
sudo rm -r /usr/share/screenlets/Gmail
3) now go back to gnome-look and download the gmail screenlet and save it and archive it to the desktop
4) go to terminal and into the Gmail directory on the desktop and type:
sudo gedit GmailScreenlet.py
5) go to the section in the file thats labeled "def on_mouse_down" and replace the original "system ('.... " with
system('xulrunner-1.9 /usr/share/prism/application.ini -webapp gmail@prism.app')
6) now move that whole Gmail directory to install it by putting it into the .screenlets folder
any questions just ask
Report
dkspook
12 years ago
Report
elusivespoon
12 years ago
Also it would be nice to have the password blocked out and not visible.
Report
manutortosa
12 years ago
2- edit GmailScreenlet.py
sudo gedit /usr/share/screenlets/Gmail/GmailScreenlet.py
(if yuou use kde replace gedit with nano)
3. Search this line:
print str(self.msgs) + ' Unread Messages'
4. Add this lines below:
if int(self.msgs) == 0:
self.howmany = 0
if self.howmany > int(self.msgs):
self.howmany = int(self.msgs)
if int(self.msgs) > self.howmany:
system('playsound /usr/share/sounds/mail.wav')
self.howmany = self.howmany + 1
--------------------
and thats all !
Note: ypu must have a sound file for play the sound when you have new mail, called mail.wav in your /user/share/sound directory, in wav format.
Sorry for my english, y only speak spaish.
Report
manutortosa
12 years ago
2- edit GmailScreenlet.py
sudo gedit /usr/share/Screenlets/Gmail/Gmail.py
(if yuou use kde replace gedit with nano)
3. Search this line:
print str(self.msgs) + ' Unread Messages'
4. Add this lines below:
if int(self.msgs) == 0:
self.howmany = 0
if self.howmany > int(self.msgs):
self.howmany = int(self.msgs)
if int(self.msgs) > self.howmany:
system('playsound /usr/share/sounds/mail.wav')
self.howmany = self.howmany + 1
--------------------
and thats all !
Note: ypu must have a sound file for play the sound when you have new mail, called mail.wav in your /user/share/sound directory, in wav format.
Sorry for my english, y only speak spaish.
Report
commonplace
12 years ago
Report
d3br074
12 years ago
Report
just-free-man
12 years ago
Report
Sunsparc
13 years ago
CachingBackend: Loading instances from cache
CachingBackend: Loading <Gmail1>
Found a running session of Gmail, adding new instance by service.
Error in screenlets.services.get_service_by_name: org.freedesktop.DBus.Error.ServiceUnknown: The name org.screenlets.Gmail was not provided by any .service files
Loading instances in: /home/brandon/.config/Screenlets/Gmail/default/
File: Gmail1.ini
Creating new instance:
UPDATING SHAPE
UPDATING SHAPE
Set options in GmailScreenlet
Traceback (most recent call last):
File "GmailScreenlet.py", line 296, in <module>
screenlets.session.create_session(GmailScreenlet)
File "/usr/lib/python2.5/site-packages/screenlets/session.py", line 392, in create_session
session.start()
File "/usr/lib/python2.5/site-packages/screenlets/session.py", line 177, in start
if self.__load_instances():
File "/usr/lib/python2.5/site-packages/screenlets/session.py", line 319, in __load_instances
self.__restore_options_from_backend(sl, self.path+filename)
File "/usr/lib/python2.5/site-packages/screenlets/session.py", line 345, in __restore_options_from_backend
setattr(screenlet, opt.name, opt.on_import(opts[o]))
File "GmailScreenlet.py", line 81, in __setattr__
self.update()
File "GmailScreenlet.py", line 95, in update
self.check()
File "GmailScreenlet.py", line 113, in check
self.msa = self.k.decrypt(self.pas, "*")
File "/home/brandon/.screenlets/Gmail/pyDes.py", line 643, in decrypt
data = self.__key3.decrypt(data)
File "/home/brandon/.screenlets/Gmail/pyDes.py", line 510, in decrypt
return self.crypt(data, des.DECRYPT)
File "/home/brandon/.screenlets/Gmail/pyDes.py", line 407, in crypt
raise ValueError("Invalid data length, data must be a multiple of " + str(self.block_size) + " bytes\n.")
ValueError: Invalid data length, data must be a multiple of 8 bytes
.
Doesnt seem that anyone else has gotten this.
Report
frigga
13 years ago
though Screenlets is installed, i get:
root@n1ck-desktop:/usr/local/share/screenlets/Gmail# . GmailScreenlet.pyfrom: can't read /var/mail/screenlets.options
from: can't read /var/mail/os
from: can't read /var/mail/urllib
from: can't read /var/mail/screenlets
bash: GmailScreenlet.py: line 22: syntax error near unexpected token `('
bash: GmailScreenlet.py: line 22: `class GmailScreenlet(screenlets.Screenlet):'
root@n1ck-desktop:/usr/local/share/screenlets/Gmail#
Report
udolf
13 years ago
Report
leeon
13 years ago
Report
elizabethsarah
13 years ago
type in sudo nautilus
you will be prompted for your password
Copy from there
Report
Ace2016
13 years ago
Invalid Quickkey. This error has been forwarded to MediaFire's development team.
The quickkey you provided for file download was invalid. This is usually caused because the file is no longer stored on Mediafire. This occurs when the file is removed by the originating user or Mediafire.
Report
sunmanXII
13 years ago
What am I doing wrong?
I download the tar into usr/local/share/screelets
Untar it right there
then use python GmailScreenlet.py in terminal
and get the following error
___
Traceback (most recent call last):
File "GmailScreenlet.py", line 296, in <module>
screenlets.session.create_session(GmailScreenlet)
File "/usr/lib/python2.5/site-packages/screenlets/session.py", line 389, in create_session
session = ScreenletSession(classobj)
File "/usr/lib/python2.5/site-packages/screenlets/session.py", line 70, in __init__
self.path = BaseDirectory.save_config_path('Screenlets/' + p)
File "/var/lib/python-support/python2.5/xdg/BaseDirectory.py", line 59, in save_config_path
os.makedirs(path, 0700)
File "/usr/lib/python2.5/os.py", line 172, in makedirs
mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/home/mattk/.config/Screenlets/Gmail/default/'
mattk@mattk-laptop:/usr/local/share/screenlets/Gmail$ sudo python GmailScreenlet.py
CachingBackend: Loading instances from cache
Traceback (most recent call last):
File "GmailScreenlet.py", line 296, in <module>
screenlets.session.create_session(GmailScreenlet)
File "/usr/lib/python2.5/site-packages/screenlets/session.py", line 389, in create_session
session = ScreenletSession(classobj)
File "/usr/lib/python2.5/site-packages/screenlets/session.py", line 79, in __init__
self.connect_daemon()
File "/usr/lib/python2.5/site-packages/screenlets/session.py", line 84, in connect_daemon
bus = dbus.SessionBus()
File "/var/lib/python-support/python2.5/dbus/_dbus.py", line 218, in __new__
mainloop=mainloop)
File "/var/lib/python-support/python2.5/dbus/_dbus.py", line 107, in __new__
bus = BusConnection.__new__(subclass, bus_type, mainloop=mainloop)
File "/var/lib/python-support/python2.5/dbus/bus.py", line 121, in __new__
bus = cls._new_for_bus(address_or_type, mainloop=mainloop)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
___
help?
Report
sunmanXII
13 years ago
What am I doing wrong?
I download the tar into usr/local/share/screelets
Untar it right there
then use python GmailScreenlet.py in terminal
and get the following error
___
Traceback (most recent call last):
File "GmailScreenlet.py", line 296, in <module>
screenlets.session.create_session(GmailScreenlet)
File "/usr/lib/python2.5/site-packages/screenlets/session.py", line 389, in create_session
session = ScreenletSession(classobj)
File "/usr/lib/python2.5/site-packages/screenlets/session.py", line 70, in __init__
self.path = BaseDirectory.save_config_path('Screenlets/' + p)
File "/var/lib/python-support/python2.5/xdg/BaseDirectory.py", line 59, in save_config_path
os.makedirs(path, 0700)
File "/usr/lib/python2.5/os.py", line 172, in makedirs
mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/home/mattk/.config/Screenlets/Gmail/default/'
mattk@mattk-laptop:/usr/local/share/screenlets/Gmail$ sudo python GmailScreenlet.py
CachingBackend: Loading instances from cache
Traceback (most recent call last):
File "GmailScreenlet.py", line 296, in <module>
screenlets.session.create_session(GmailScreenlet)
File "/usr/lib/python2.5/site-packages/screenlets/session.py", line 389, in create_session
session = ScreenletSession(classobj)
File "/usr/lib/python2.5/site-packages/screenlets/session.py", line 79, in __init__
self.connect_daemon()
File "/usr/lib/python2.5/site-packages/screenlets/session.py", line 84, in connect_daemon
bus = dbus.SessionBus()
File "/var/lib/python-support/python2.5/dbus/_dbus.py", line 218, in __new__
mainloop=mainloop)
File "/var/lib/python-support/python2.5/dbus/_dbus.py", line 107, in __new__
bus = BusConnection.__new__(subclass, bus_type, mainloop=mainloop)
File "/var/lib/python-support/python2.5/dbus/bus.py", line 121, in __new__
bus = cls._new_for_bus(address_or_type, mainloop=mainloop)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
___
help?
Report
yaraju
13 years ago
Then, just untar the download, and put the resulting folder into ~/.screenlets.
Report
someguydude
13 years ago
Also, I use Swiftweasel, but this thing opens up Firefox no matter what my default browser is.
Report
Whise
13 years ago
Report