Changeset 3946 for lliurex-gdrive


Ignore:
Timestamp:
Mar 15, 2017, 11:55:09 AM (3 years ago)
Author:
jrpelegrina
Message:

Fix autostart, reorder bin and connect gui with indicator

Location:
lliurex-gdrive/trunk/fuentes
Files:
7 added
3 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • lliurex-gdrive/trunk/fuentes/lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/Core.py

    r3943 r3946  
     1
     2#!/usr/bin/env python
     3
    14#import LliurexGoogleDriveManager
    25import lliurex.lliurexgdrive
  • lliurex-gdrive/trunk/fuentes/lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/LliurexGdrive.py

    r3812 r3946  
     1#!/usr/bin/env python
     2
    13import gi
    24gi.require_version('Gtk', '3.0')
     
    1517
    1618
    17 RSRC="./"
     19RSRC="/usr/share/lliurex-gdrive/"
    1820#CONFIG_DIR=os.path.expanduser("~/.config/lliurex-google-drive-profiles/config")
     21CSS_FILE="/usr/share/lliurex-gdrive/lliurex-gdrive.css"
     22LOCK_PATH="~/.config/lliurex-google-drive-profiles/lgdIndicator.lock"
     23
    1924
    2025class LliurexGdrive:
     
    2934               
    3035                builder=Gtk.Builder()
    31                 ui_path=RSRC + "/rsrc/lliurex-gdrive.ui"
     36                ui_path=RSRC + "rsrc/lliurex-gdrive.ui"
    3237                builder.add_from_file(ui_path)
    3338               
     
    6873               
    6974                self.style_provider=Gtk.CssProvider()
    70                 f=Gio.File.new_for_path("lliurex-gdrive.css")
     75                f=Gio.File.new_for_path(CSS_FILE)
    7176                self.style_provider.load_from_file(f)
    7277                Gtk.StyleContext.add_provider_for_screen(Gdk.Screen.get_default(),self.style_provider,Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION)
     
    8388        #def connect_signals
    8489
     90        def launch_indicator(self):
     91
     92                self.lockpath=R=os.path.expanduser(LOCK_PATH)
     93                if not os.path.exists(self.lockpath):
     94                        cmd="lliurexGdriveIndicator.py" + "&"
     95                        os.system(cmd)
     96
     97
    8598        def quit(self,widget):
    86                
    87                
     99
     100                self.launch_indicator()
     101
    88102                Gtk.main_quit()
    89103       
  • lliurex-gdrive/trunk/fuentes/lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py

    r3943 r3946  
     1#!/usr/bin/env python
     2
     3
    14import gi
    25gi.require_version('Gtk', '3.0')
     
    2124
    2225
    23 RSRC="./"
     26RSRC="/usr/share/lliurex-gdrive/"
     27CSS_FILE="/usr/share/lliurex-gdrive/lliurex-gdrive.css"
    2428PROFILE_IMAGE=RSRC+"rsrc/profile.svg"
    2529FOLDER_IMAGE=RSRC+"rsrc/folder.svg"
     
    112116                self.style_provider=Gtk.CssProvider()
    113117
    114                 f=Gio.File.new_for_path("lliurex-gdrive.css")
     118                f=Gio.File.new_for_path(CSS_FILE)
    115119                self.style_provider.load_from_file(f)
    116120
  • lliurex-gdrive/trunk/fuentes/lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/lliurex-gdrive.py

    r3775 r3946  
    11#!/usr/bin/env python
     2
    23import Core
    34
Note: See TracChangeset for help on using the changeset viewer.