{"action":"created","issue":{"url":"https://api.github.com/repos/lxqt/lxqt/issues/1298","repository_url":"https://api.github.com/repos/lxqt/lxqt","labels_url":"https://api.github.com/repos/lxqt/lxqt/issues/1298/labels{/name}","comments_url":"https://api.github.com/repos/lxqt/lxqt/issues/1298/comments","events_url":"https://api.github.com/repos/lxqt/lxqt/issues/1298/events","html_url":"https://github.com/lxqt/lxqt/issues/1298","id":228090243,"node_id":"MDU6SXNzdWUyMjgwOTAyNDM=","number":1298,"title":"Problem with xdg-utils 1.1.2","user":{"login":"tsujan","id":981076,"node_id":"MDQ6VXNlcjk4MTA3Ng==","avatar_url":"https://avatars3.githubusercontent.com/u/981076?v=4","gravatar_id":"","url":"https://api.github.com/users/tsujan","html_url":"https://github.com/tsujan","followers_url":"https://api.github.com/users/tsujan/followers","following_url":"https://api.github.com/users/tsujan/following{/other_user}","gists_url":"https://api.github.com/users/tsujan/gists{/gist_id}","starred_url":"https://api.github.com/users/tsujan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsujan/subscriptions","organizations_url":"https://api.github.com/users/tsujan/orgs","repos_url":"https://api.github.com/users/tsujan/repos","events_url":"https://api.github.com/users/tsujan/events{/privacy}","received_events_url":"https://api.github.com/users/tsujan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":88,"created_at":"2017-05-11T19:04:19Z","updated_at":"2018-06-22T00:33:23Z","closed_at":null,"author_association":"MEMBER","body":"`xdg-utils` v1.1.2 recognizes LXQt but doesn't distinguish between LXQt and LXDE, so that this error message is shown instead of opening local files when `xdg-open` is used:\r\n````\r\n/usr/bin/xdg-open: line 922: pcmanfm: command not found\r\n````\r\nThis automatically affects the behavior of `QDesktopServices::openUrl()` and all apps that use it.\r\n\r\nNow, we could\r\n\r\n(1) tell the developers of `xdg-utils` about this issue and wait centuries for a fix; or we could\r\n\r\n(2) Add the symlink `pcmanfm` to the binary `pcmanfm-qt` and make pcmanfm-qt and pcmanfm incompatible with each other; or\r\n\r\n(3) Any other suggestion?"},"comment":{"url":"https://api.github.com/repos/lxqt/lxqt/issues/comments/399284665","html_url":"https://github.com/lxqt/lxqt/issues/1298#issuecomment-399284665","issue_url":"https://api.github.com/repos/lxqt/lxqt/issues/1298","id":399284665,"node_id":"MDEyOklzc3VlQ29tbWVudDM5OTI4NDY2NQ==","user":{"login":"tsujan","id":981076,"node_id":"MDQ6VXNlcjk4MTA3Ng==","avatar_url":"https://avatars3.githubusercontent.com/u/981076?v=4","gravatar_id":"","url":"https://api.github.com/users/tsujan","html_url":"https://github.com/tsujan","followers_url":"https://api.github.com/users/tsujan/followers","following_url":"https://api.github.com/users/tsujan/following{/other_user}","gists_url":"https://api.github.com/users/tsujan/gists{/gist_id}","starred_url":"https://api.github.com/users/tsujan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsujan/subscriptions","organizations_url":"https://api.github.com/users/tsujan/orgs","repos_url":"https://api.github.com/users/tsujan/repos","events_url":"https://api.github.com/users/tsujan/events{/privacy}","received_events_url":"https://api.github.com/users/tsujan/received_events","type":"User","site_admin":false},"created_at":"2018-06-22T00:33:23Z","updated_at":"2018-06-22T00:33:23Z","author_association":"MEMBER","body":"> but that can be changed\r\n\r\nDon't change that because it won't have any effect with the current situation and won't be needed in the imaginary future that my plan is accepted. An additional dependency isn't good, IMO.\r\n\r\nBTW, I found a solution for Qt programmers: they could use this simple check in their file opening apps for now:\r\n```c++\r\n        if (!QProcess::startDetached (\"gio\", QStringList() << \"open\" << str))\r\n            QDesktopServices::openUrl (url);\r\n```\r\nHere, `str` is the file path."}}
{"actor":{"display_login":"tsujan"}}