Skip to content

Commit d06cc75

Browse files
author
lb1programmer
committed
Cleanup, and show only supported applications for iTunes document sharing!
1 parent 4d57a26 commit d06cc75

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

TransferGUI.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,10 @@ def setAppListing(self):
5151
for app in listing:
5252
app_name = app["CFBundleName"].get_value().encode("utf8")
5353
#print "%s - %s %s" % (app["CFBundleIdentifier"], app_name, app["CFBundleVersion"])
54-
self.addApp( app["CFBundleIdentifier"], "%s %s" % (app_name, app["CFBundleVersion"]) )
54+
#print app["UIFileSharingEnabled"]
55+
56+
if ("UIFileSharingEnabled" in app) and app["UIFileSharingEnabled"] == True:
57+
self.addApp( app["CFBundleIdentifier"], "%s %s" % (app_name, app["CFBundleVersion"]) )
5558
self.AppsListBox.show_all()
5659
self.lastAppCount = len(listing)
5760

@@ -198,6 +201,8 @@ def setup(self):
198201
if not os.path.exists( MOUNTS ):
199202
os.mkdir( MOUNTS )
200203
mountdir = os.path.join( MOUNTS, self.id )
204+
if os.path.exists( mountdir ):
205+
os.system("fusermount -u " + mountdir + "; rmdir " + mountdir)
201206

202207
if not self.connected: #connect:
203208
if not os.path.exists( mountdir ):

instproxy_browse_installed_app.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,16 @@ def list_installed_app(app_type="Any"):
7171
"CFBundleIdentifier",
7272
"CFBundleName",
7373
"CFBundleVersion",
74+
"Container",
75+
"CFBundleDocumentTypes",
76+
"Entitlements",
77+
"Path",
78+
"EnvironmentVariables",
79+
"ApplicationType",
80+
"UIPrerenderedIcon",
81+
"UTExportedTypeDeclarations",
82+
"UTImportedTypeDeclarations",
83+
"UIFileSharingEnabled"
7484
]),
7585
})
7686

0 commit comments

Comments
 (0)