{"action":"closed","issue":{"url":"https://api.github.com/repos/Caldis/Mos/issues/108","repository_url":"https://api.github.com/repos/Caldis/Mos","labels_url":"https://api.github.com/repos/Caldis/Mos/issues/108/labels{/name}","comments_url":"https://api.github.com/repos/Caldis/Mos/issues/108/comments","events_url":"https://api.github.com/repos/Caldis/Mos/issues/108/events","html_url":"https://github.com/Caldis/Mos/issues/108","id":374838766,"node_id":"MDU6SXNzdWUzNzQ4Mzg3NjY=","number":108,"title":"例外项允许选取非.app程序","user":{"login":"liujj","id":3626540,"node_id":"MDQ6VXNlcjM2MjY1NDA=","avatar_url":"https://avatars1.githubusercontent.com/u/3626540?v=4","gravatar_id":"","url":"https://api.github.com/users/liujj","html_url":"https://github.com/liujj","followers_url":"https://api.github.com/users/liujj/followers","following_url":"https://api.github.com/users/liujj/following{/other_user}","gists_url":"https://api.github.com/users/liujj/gists{/gist_id}","starred_url":"https://api.github.com/users/liujj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liujj/subscriptions","organizations_url":"https://api.github.com/users/liujj/orgs","repos_url":"https://api.github.com/users/liujj/repos","events_url":"https://api.github.com/users/liujj/events{/privacy}","received_events_url":"https://api.github.com/users/liujj/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-10-29T02:54:55Z","updated_at":"2018-10-30T06:57:57Z","closed_at":"2018-10-30T06:57:57Z","author_association":"NONE","body":"这是一个新功能的建议\r\n\r\n我在日常中会使用mac玩Minecraft游戏，在该款游戏中有禁用smooth，开启reverse的需求。这款游戏是通过java虚拟机，在命令行模式下启动的。\r\n此外作为开发者，我还具有使用qt应用并禁用smooth的场景。\r\n\r\n在Exception页面中，我注意到使用了`openPanel.allowedFileTypes = [\"app\", \"App\", \"APP\"]`来限制只能选取.app文件，并且最终是通过`getApplicationBundleIdFrom(pid)`来识别鼠标当前位置下的程序。\r\n使用jdk运行Minecraft时，其bundleId为`net.java.openjdk.cmd`，通过修改编译mos并手动写入了需要的例外项，是可以正确生效的。\r\n\r\n提出的建议是：\r\n1、对有经验的使用者放开只能选取.app限制。针对非.app应用的例外项，通过完整路径去匹配。\r\n2、对有经验的使用者放开只能选取.app限制。允许自行填写bundleId。"}}
{"actor":{"display_login":"liujj"}}