Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaas Freitag <freitag@owncloud.com>2015-01-29 20:09:02 +0300
committerKlaas Freitag <freitag@owncloud.com>2015-01-29 20:11:04 +0300
commit37f19dd0fe4e2f00ee0b3fb80d5a3f584efd4e56 (patch)
tree3a8b6d05d313c919269cff241ad213affaff16a8 /shell_integration
parent0c987f58e691720395c79733718819aaf3ca91bf (diff)
nautilus menu: Do not show entry on external files.
Diffstat (limited to 'shell_integration')
-rwxr-xr-xshell_integration/nautilus/syncstate.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/shell_integration/nautilus/syncstate.py b/shell_integration/nautilus/syncstate.py
index 125780c55..89196729f 100755
--- a/shell_integration/nautilus/syncstate.py
+++ b/shell_integration/nautilus/syncstate.py
@@ -53,7 +53,7 @@ class SocketConnect(GObject.GObject):
SocketConnect._sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
postfix = "/"+appname+"/socket"
sock_file = get_runtime_dir()+postfix
- print ("XXXX " + sock_file + " <=> " + postfix)
+ print ("Socket: " + sock_file + " <=> " + postfix)
if sock_file != postfix:
try:
print("Socket File: "+sock_file)
@@ -100,11 +100,12 @@ class MenuExtension( Nautilus.MenuProvider, SocketConnect):
# internal or external file?!
syncedFile = False
for reg_path in self.registered_paths:
- if file.get_name().startswith(reg_path):
+ filename = get_local_path(file.get_uri())
+ if filename.startswith(reg_path):
syncedFile = True
# if it is neither in a synced folder or is a directory
- if (not syncedFile and file.is_directory()):
+ if (not syncedFile):
return items
# create an menu item