Changeset 5574


Ignore:
Timestamp:
Jul 21, 2017, 10:31:38 AM (22 months ago)
Author:
jrpelegrina
Message:

Clean cache when mountpoint is dismounted

Location:
lliurex-gdrive/trunk/fuentes
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • lliurex-gdrive/trunk/fuentes/lliurex-gdrive-core.install/usr/bin/lliurex-gdrive-endsession

    r4439 r5574  
    7575                                status=self.LliurexGoogleDriveManager.check_mountpoint_status(mountpoint)
    7676                                if status["status"]:
    77                                         self.LliurexGoogleDriveManager.dismount_mountpoint(mountpoint)
     77                                        self.LliurexGoogleDriveManager.dismount_mountpoint(profile,mountpoint)
    7878                #return
    7979                       
  • lliurex-gdrive/trunk/fuentes/lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator

    r4055 r5574  
    8282                return
    8383
     84        #def check_initial_connection   
     85
    8486        def generate_sync_threads(self,profile):
    8587               
     
    9294                self.result_sync_threads[id]={}
    9395                return id
     96
     97        #def generate_sync_threads     
    9498       
    9599        def init_connect_thread(self):
     
    98102                self.check_connect_t.daemon=True
    99103                self.check_connect_t.start()
     104
     105        #def init_connect_thread       
    100106               
    101107        def createLockToken(self):
     
    221227                self.menu.insert(item,2)
    222228
     229                item=Gtk.MenuItem()
     230                label_item=_("Update cache")
     231                item.set_label(label_item)
     232                item.set_tooltip_text(_("Click if do not see all the files in the Google Drive account"))
     233                item.connect("activate",self.refresh_cache,profile)
     234                item.profile=profile
     235                item.size=False
     236                item.status=False
     237                self.menu.insert(item,3)
     238
    223239                item=Gtk.SeparatorMenuItem()
    224240                item.profile=profile
    225241                item.size=False
    226242                item.status=False
    227                 self.menu.insert(item,3)
     243                self.menu.insert(item,4)
    228244
    229245        #def add_menu_item     
     
    309325                        self.sp_img[id]=img     
    310326                               
    311                
     327        #def spinner_sync       
    312328                       
    313329        def pulsate_check_sync(self,id,widget,profile):
     
    357373               
    358374                return False
     375
     376        #def pulsate_check_sync
    359377                       
    360378       
     
    369387
    370388                #self.result_connect_threads[id]["value"]=self.LliurexGoogleDriveManager.check_google_connection()
     389
     390        #def check_sync
    371391       
    372392        def open_folder(self,widget,profile):
     
    378398                os.system(cmd) 
    379399
    380         #def open_folder       
     400        #def open_folder
     401
     402        def refresh_cache (self,widget,profile):
     403
     404                cmd="google-drive-ocamlfuse -cc -label %s"%profile
     405                os.system(cmd) 
     406
     407        #def refresh_cache     
    381408
    382409        def open_gui(self,widget):
     
    455482                #self.result_connect_threads.pop(id)           
    456483                return False   
     484
     485        #def get_status_info   
    457486                                       
    458487        def check_connect(self):
    459488               
    460489                self.connection=self.LliurexGoogleDriveManager.check_google_connection()
     490
     491        #def check_connect     
    461492
    462493       
     
    466497                n.show()
    467498                return
     499
     500        #def show_message       
    468501                               
    469502       
  • lliurex-gdrive/trunk/fuentes/lliurex-po/lliurex-gdrive-gui/ca_ES@valencia.po

    r4098 r5574  
    77msgid ""
    88msgstr ""
    9 "Project-Id-Version: PACKAGE VERSION\n"
     9"Project-Id-Version: \n"
    1010"Report-Msgid-Bugs-To: \n"
    11 "POT-Creation-Date: 2017-03-28 12:02+0200\n"
    12 "PO-Revision-Date: 2017-03-31 09:01+0200\n"
     11"POT-Creation-Date: 2017-07-20 09:26+0200\n"
     12"PO-Revision-Date: 2017-07-21 10:29+0200\n"
    1313"Last-Translator: Jose A. Murcia <joamruan@gmail.com>\n"
    1414"Language-Team: LliureX\n"
     
    1818"Content-Transfer-Encoding: 8bit\n"
    1919"Plural-Forms: nplurals=2; plural=(n != 1);\n"
    20 "X-Generator: Virtaal 0.7.1\n"
     20"X-Generator: Poedit 1.8.7.1\n"
    2121
    2222#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:176
     
    3434
    3535#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:214
    36 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:262
     36#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:279
    3737msgid "Close"
    3838msgstr "Tanca"
     
    5050#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:325
    5151#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:558
    52 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:315
     52#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:335
    5353msgid "Applying changes..."
    5454msgstr "S'estan aplicant els canvis..."
     
    5959
    6060#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:511
    61 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:393
     61#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:424
    6262msgid "Without connection. Clicked to update"
    6363msgstr "No hi ha connexió. Feu clic per a actualitzar"
    6464
    6565#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:516
    66 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:398
     66#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:429
    6767msgid "Mounted. Clicked to dismount now"
    6868msgstr "Muntat. Feu clic per a desmuntar ara."
    6969
    7070#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:520
    71 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:403
     71#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:434
    7272msgid "Dismounted. Clicked to mount now"
    7373msgstr "Desmuntat. Feu clic per a muntar ara."
     
    102102
    103103#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:647
    104 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:336
     104#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:356
    105105msgid "Changes applied successfully"
    106106msgstr "Els canvis s'han aplicat correctament"
     
    135135
    136136#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:671
    137 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:324
     137#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:344
    138138msgid "Error: Unable to connect with google"
    139139msgstr "Error: No s'ha pogut connectar amb Google"
    140140
    141141#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:674
    142 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:334
     142#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:354
    143143msgid "Status updated. Now you can change it"
    144144msgstr "S'ha actualitzat l'estat. Ara podeu canviar-lo"
     
    162162#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/rsrc/lliurex-gdrive.ui:202
    163163msgid "E-mail:"
    164 msgstr "correu electrònic:"
     164msgstr "Correu electrònic:"
    165165
    166166#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/rsrc/lliurex-gdrive.ui:217
     
    180180msgstr "Afig perfil"
    181181
    182 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:214
     182#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:221
    183183msgid "Open folder"
    184 msgstr "Obri una carpeta"
    185 
    186 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:245
     184msgstr "Obri la carpeta"
     185
     186#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:230
     187msgid "Update cache"
     188msgstr "Actualitza la memòria cau"
     189
     190#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:232
     191msgid "Click if do not see all the files in the Google Drive account"
     192msgstr "Polseu ací si no es mostren tots els fitxers del compte sincronitzat del Google Drive"
     193
     194#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:262
    187195msgid "Open Lliurex GDrive"
    188196msgstr "Obri el LliureX GDrive"
    189197
    190 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:328
     198#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:348
    191199msgid "dismount"
    192200msgstr "desmunta"
    193201
    194 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:330
     202#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:350
    195203msgid "mount"
    196204msgstr "munta"
    197205
    198 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:331
     206#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:351
    199207msgid "Error: Unable to "
    200208msgstr "Error: No s'ha pogut "
    201209
    202 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:394
    203 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:404
     210#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:425
     211#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:435
    204212msgid "Used: not available"
    205213msgstr "En ús: no disponible"
    206214
    207 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:399
     215#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:430
    208216#, python-format
    209217msgid "Used: %s of %s"
  • lliurex-gdrive/trunk/fuentes/lliurex-po/lliurex-gdrive-gui/es.po

    r4102 r5574  
    77msgid ""
    88msgstr ""
    9 "Project-Id-Version: PACKAGE VERSION\n"
     9"Project-Id-Version: \n"
    1010"Report-Msgid-Bugs-To: \n"
    11 "POT-Creation-Date: 2017-03-28 12:02+0200\n"
    12 "PO-Revision-Date: 2017-03-28 12:03+0200\n"
     11"POT-Creation-Date: 2017-07-20 09:25+0200\n"
     12"PO-Revision-Date: 2017-07-20 09:31+0200\n"
    1313"Last-Translator: lliurex <lliurex@gva.es>\n"
    1414"Language-Team: Spanish <es@li.org>\n"
     
    1818"Content-Transfer-Encoding: 8bit\n"
    1919"Plural-Forms: nplurals=2; plural=(n != 1);\n"
     20"X-Generator: Poedit 1.8.7.1\n"
    2021
    2122#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:176
     
    3334
    3435#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:214
    35 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:262
     36#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:279
    3637msgid "Close"
    3738msgstr "Cerrar"
     
    4950#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:325
    5051#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:558
    51 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:315
     52#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:335
    5253msgid "Applying changes..."
    5354msgstr "Aplicando cambios..."
     
    5859
    5960#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:511
    60 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:393
     61#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:424
    6162msgid "Without connection. Clicked to update"
    6263msgstr "Sin conexión. Pulse para actualizar"
    6364
    6465#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:516
    65 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:398
     66#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:429
    6667msgid "Mounted. Clicked to dismount now"
    6768msgstr "Montado. Pulse para desmontar ahora"
    6869
    6970#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:520
    70 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:403
     71#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:434
    7172msgid "Dismounted. Clicked to mount now"
    7273msgstr "Desmontado. Pulse para montar ahora"
     
    101102
    102103#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:647
    103 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:336
     104#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:356
    104105msgid "Changes applied successfully"
    105106msgstr "Cambios aplicados correctamente"
     
    134135
    135136#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:671
    136 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:324
     137#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:344
    137138msgid "Error: Unable to connect with google"
    138139msgstr "Error: Imposible conectar con Google"
    139140
    140141#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:674
    141 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:334
     142#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:354
    142143msgid "Status updated. Now you can change it"
    143144msgstr "Estado actualizado. Ahora puedes cambiarlo"
     
    149150#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/LliurexGdrive.py:46
    150151msgid "Lliurex GDrive is now running."
    151 msgstr  "Lliurex Gdrive ya esta ejecutando"
     152msgstr "Lliurex Gdrive ya esta ejecutando"
    152153
    153154#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/rsrc/lliurex-gdrive.ui:102
     
    179180msgstr "Añadir perfil"
    180181
    181 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:214
     182#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:221
    182183msgid "Open folder"
    183184msgstr "Abrir carpeta"
    184185
    185 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:245
     186#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:230
     187msgid "Update cache"
     188msgstr "Actualizar caché"
     189
     190#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:232
     191msgid "Click if do not see all the files in the Google Drive account"
     192msgstr "Pulse aqui si no se muestran todos los ficheros de la cuenta sincronizada de Google Drive"
     193
     194#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:262
    186195msgid "Open Lliurex GDrive"
    187196msgstr "Abrir Lliurex GDrive"
    188197
    189 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:328
     198#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:348
    190199msgid "dismount"
    191200msgstr "desmontar"
    192201
    193 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:330
     202#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:350
    194203msgid "mount"
    195204msgstr "montar"
    196205
    197 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:331
     206#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:351
    198207msgid "Error: Unable to "
    199208msgstr "Error: Imposible de "
    200209
    201 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:394
    202 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:404
     210#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:425
     211#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:435
    203212msgid "Used: not available"
    204213msgstr "Usado: no disponible"
    205214
    206 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:399
     215#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:430
    207216#, python-format
    208217msgid "Used: %s of %s"
  • lliurex-gdrive/trunk/fuentes/lliurex-po/lliurex-gdrive-gui/lliurex-gdrive.pot

    r4042 r5574  
    99"Project-Id-Version: PACKAGE VERSION\n"
    1010"Report-Msgid-Bugs-To: \n"
    11 "POT-Creation-Date: 2017-03-28 12:02+0200\n"
     11"POT-Creation-Date: 2017-07-20 09:24+0200\n"
    1212"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1313"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    3232
    3333#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:214
    34 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:262
     34#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:279
    3535msgid "Close"
    3636msgstr ""
     
    4848#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:325
    4949#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:558
    50 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:315
     50#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:335
    5151msgid "Applying changes..."
    5252msgstr ""
     
    5757
    5858#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:511
    59 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:393
     59#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:424
    6060msgid "Without connection. Clicked to update"
    6161msgstr ""
    6262
    6363#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:516
    64 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:398
     64#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:429
    6565msgid "Mounted. Clicked to dismount now"
    6666msgstr ""
    6767
    6868#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:520
    69 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:403
     69#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:434
    7070msgid "Dismounted. Clicked to mount now"
    7171msgstr ""
     
    100100
    101101#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:647
    102 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:336
     102#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:356
    103103msgid "Changes applied successfully"
    104104msgstr ""
     
    133133
    134134#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:671
    135 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:324
     135#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:344
    136136msgid "Error: Unable to connect with google"
    137137msgstr ""
    138138
    139139#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:674
    140 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:334
     140#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:354
    141141msgid "Status updated. Now you can change it"
    142142msgstr ""
     
    178178msgstr ""
    179179
    180 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:214
     180#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:221
    181181msgid "Open folder"
    182182msgstr ""
    183183
    184 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:245
     184#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:230
     185msgid "Update cache"
     186msgstr ""
     187
     188#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:232
     189msgid "Click if do not see all the files in the Google Drive account"
     190msgstr ""
     191
     192#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:262
    185193msgid "Open Lliurex GDrive"
    186194msgstr ""
    187195
    188 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:328
     196#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:348
    189197msgid "dismount"
    190198msgstr ""
    191199
    192 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:330
     200#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:350
    193201msgid "mount"
    194202msgstr ""
    195203
    196 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:331
     204#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:351
    197205msgid "Error: Unable to "
    198206msgstr ""
    199207
    200 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:394
    201 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:404
     208#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:425
     209#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:435
    202210msgid "Used: not available"
    203211msgstr ""
    204212
    205 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:399
     213#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:430
    206214#, python-format
    207215msgid "Used: %s of %s"
  • lliurex-gdrive/trunk/fuentes/python-lliurex-gdrive/lliurex/lliurexgdrive/__init__.py

    r4034 r5574  
    2525               
    2626                self.mount_cmd="google-drive-ocamlfuse -label %s %s"
     27                self.clean_cache="google-drive-ocamlfuse -cc -label %s"
    2728
    2829                self.read_conf()
     
    340341        #def create_mountpoint 
    341342
    342         def dismount_mountpoint(self,mountpoint):
    343 
    344                 cmd='fusermount -u ' + mountpoint
     343        def dismount_mountpoint(self,profile,mountpoint):
     344
     345                cmd='fusermount -u ' + mountpoint + ";"+self.clean_cache%profile
    345346                p=subprocess.Popen(cmd, shell=True,stdout=subprocess.PIPE, stderr=subprocess.PIPE)
    346347                poutput,perror=p.communicate()
     
    386387                        else:
    387388                                if is_mountpoint_mounted["status"]:     
    388                                         dismount=self.dismount_mountpoint(mountpoint)
     389                                        dismount=self.dismount_mountpoint(profile,mountpoint)
    389390
    390391                                if dismount["result"]:
     
    429430                       
    430431                        if status["status"]:
    431                                 result=self.dismount_mountpoint(old_mountpoint)
     432                                result=self.dismount_mountpoint(profile,old_mountpoint)
    432433                               
    433434                                if result["result"]:
     
    459460                        if current_status!=None and status['status']==current_status:
    460461                                if status['status']:
    461                                         result=self.dismount_mountpoint(mountpoint)
     462                                        result=self.dismount_mountpoint(profile,mountpoint)
    462463                                else:
    463464                                        result=self.mount_drive(profile,mountpoint)
Note: See TracChangeset for help on using the changeset viewer.