{"action":"opened","issue":{"url":"https://api.github.com/repos/QubesOS/qubes-issues/issues/1657","labels_url":"https://api.github.com/repos/QubesOS/qubes-issues/issues/1657/labels{/name}","comments_url":"https://api.github.com/repos/QubesOS/qubes-issues/issues/1657/comments","events_url":"https://api.github.com/repos/QubesOS/qubes-issues/issues/1657/events","html_url":"https://github.com/QubesOS/qubes-issues/issues/1657","id":127361245,"number":1657,"title":"qvm-sync-appmenus fails when a shortcut have spaces in the file name","user":{"login":"adrianx64","id":16770312,"avatar_url":"https://avatars.githubusercontent.com/u/16770312?v=3","gravatar_id":"","url":"https://api.github.com/users/adrianx64","html_url":"https://github.com/adrianx64","followers_url":"https://api.github.com/users/adrianx64/followers","following_url":"https://api.github.com/users/adrianx64/following{/other_user}","gists_url":"https://api.github.com/users/adrianx64/gists{/gist_id}","starred_url":"https://api.github.com/users/adrianx64/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrianx64/subscriptions","organizations_url":"https://api.github.com/users/adrianx64/orgs","repos_url":"https://api.github.com/users/adrianx64/repos","events_url":"https://api.github.com/users/adrianx64/events{/privacy}","received_events_url":"https://api.github.com/users/adrianx64/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-19T03:58:22Z","updated_at":"2016-01-19T03:58:22Z","closed_at":null,"body":"qvm-sync-appmenus generates an exception when one or more shortcuts in the VM have spaces in its name:\r\n[user@dom0 ~]$ qvm-sync-appmenus fedora-23\r\nTraceback (most recent call last):\r\n  File \"/usr/libexec/qubes-appmenus/qubes-receive-appmenus\", line 389, in <module>\r\n    main()\r\n  File \"/usr/libexec/qubes-appmenus/qubes-receive-appmenus\", line 293, in main\r\n    new_appmenus = get_appmenus(vm)\r\n  File \"/usr/libexec/qubes-appmenus/qubes-receive-appmenus\", line 139, in get_appmenus\r\n    raise QubesException(\"Error getting application list\")\r\nqubes.qubes.QubesException: Error getting application list\r\n\r\n\r\nThe issue can be solved in the script qubes.GetAppmenus, modifying the two first lines and adding the parameter -print0 to \"find\" command and -0 to \"xargs\" command like this way:\r\nfind /usr/share/applications/ /usr/local/share/applications/ -name '*.desktop' -print0 2>/dev/null | \\\r\n         xargs -0 awk '\r\n...\r\n"}}