--- /usr/share/session-migration/scripts/update-desktop-file-unity-webapps-launchpad.py 2013-09-24 17:20:53.000000000 -0500 +++ workspace/TestUnityMigration/src/update-desktop-file-unity-webapps-launchpad.py 2015-09-20 13:45:49.509073788 -0500 @@ -1,5 +1,6 @@ #!/usr/bin/python from gi.repository import Gio +from gi import module import os import glib import glob @@ -8,7 +9,9 @@ APP_ID = 'Launchpadlaunchpadnet' def get_local_applications_path(): - return os.path.join(glib.get_user_data_dir(), 'applications') + GLib = module.get_introspection_module('GLib') + user_data_dir = GLib.get_user_data_dir() + return os.path.join(user_data_dir, 'applications') def update_desktop_file_startupwmclass(): local_applications_path = get_local_applications_path() @@ -31,4 +34,4 @@ if __name__ == "__main__": update_desktop_file_startupwmclass() - \ No newline at end of file +