Ignore:
Timestamp:
Mar 15, 2017, 6:28:40 PM (3 years ago)
Author:
jrpelegrina
Message:

Add dessktop file and fix some files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lliurex-gdrive/trunk/fuentes/lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator

    r3959 r3977  
    44gi.require_version('Gtk', '3.0')
    55from gi.repository import Gtk, Pango, GdkPixbuf, Gdk, Gio, GObject, GLib
    6 gi.require_version('AppIndicator3', '0.1')
     6gi.require_version('AppIMOUNT_ON_IMAGEndicator3', '0.1')
    77from gi.repository import AppIndicator3 as appindicator
    88
     
    2626
    2727LOCK_PATH="~/.config/lliurex-google-drive-profiles/lgdIndicator.lock"
    28 
     28RSRC="/usr/share/lliurex-gdrive/"
     29MOUNT_ON_IMAGE=RSRC+"rsrc/mount_on.png"
     30MOUNT_OFF_IMAGE=RSRC+"rsrc/mount_off.png"
    2931
    3032class LlliurexGdriveIndicator:
     
    140142                info=self.item_status_info(status_info)
    141143                self.current_status[profile]=status_info["status"]     
    142 
    143                 print self.current_status
    144144
    145145                label_item=profile     
     
    277277
    278278                if status_info["status"]:
    279                         img=Gtk.Image.new_from_file("/home/lliurex/Descargas/mount_on.png")
     279                        img=Gtk.Image.new_from_file(MOUNT_ON_IMAGE)
    280280                        tooltip=_("Dismount now")
    281281                        used_size=_("Used: %s of %s")%(used,size)
    282282               
    283283                else:
    284                         img=Gtk.Image.new_from_file("/home/lliurex/Descargas/mount_off.png")
     284                        img=Gtk.Image.new_from_file(MOUNT_OFF_IMAGE)
    285285                        tooltip=_("Mount now")
    286286                        used_size=_("Used: not available")     
Note: See TracChangeset for help on using the changeset viewer.