{"action":"created","issue":{"url":"https://api.github.com/repos/DaveDavenport/rofi/issues/482","repository_url":"https://api.github.com/repos/DaveDavenport/rofi","labels_url":"https://api.github.com/repos/DaveDavenport/rofi/issues/482/labels{/name}","comments_url":"https://api.github.com/repos/DaveDavenport/rofi/issues/482/comments","events_url":"https://api.github.com/repos/DaveDavenport/rofi/issues/482/events","html_url":"https://github.com/DaveDavenport/rofi/issues/482","id":183222325,"number":482,"title":"Rofi ignores Path entry in .desktop files","user":{"login":"mgoral","id":854316,"avatar_url":"https://avatars.githubusercontent.com/u/854316?v=3","gravatar_id":"","url":"https://api.github.com/users/mgoral","html_url":"https://github.com/mgoral","followers_url":"https://api.github.com/users/mgoral/followers","following_url":"https://api.github.com/users/mgoral/following{/other_user}","gists_url":"https://api.github.com/users/mgoral/gists{/gist_id}","starred_url":"https://api.github.com/users/mgoral/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgoral/subscriptions","organizations_url":"https://api.github.com/users/mgoral/orgs","repos_url":"https://api.github.com/users/mgoral/repos","events_url":"https://api.github.com/users/mgoral/events{/privacy}","received_events_url":"https://api.github.com/users/mgoral/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/DaveDavenport/rofi/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/DaveDavenport/rofi/labels/Needs%20Testing","name":"Needs Testing","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/DaveDavenport/rofi/milestones/10","html_url":"https://github.com/DaveDavenport/rofi/milestones/1.3","labels_url":"https://api.github.com/repos/DaveDavenport/rofi/milestones/10/labels","id":1954275,"number":10,"title":"1.3","description":"","creator":{"login":"DaveDavenport","id":406245,"avatar_url":"https://avatars.githubusercontent.com/u/406245?v=3","gravatar_id":"","url":"https://api.github.com/users/DaveDavenport","html_url":"https://github.com/DaveDavenport","followers_url":"https://api.github.com/users/DaveDavenport/followers","following_url":"https://api.github.com/users/DaveDavenport/following{/other_user}","gists_url":"https://api.github.com/users/DaveDavenport/gists{/gist_id}","starred_url":"https://api.github.com/users/DaveDavenport/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DaveDavenport/subscriptions","organizations_url":"https://api.github.com/users/DaveDavenport/orgs","repos_url":"https://api.github.com/users/DaveDavenport/repos","events_url":"https://api.github.com/users/DaveDavenport/events{/privacy}","received_events_url":"https://api.github.com/users/DaveDavenport/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":14,"state":"open","created_at":"2016-08-22T06:05:28Z","updated_at":"2016-10-15T17:38:52Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-10-15T17:37:09Z","updated_at":"2016-10-15T17:57:46Z","closed_at":null,"body":"Hello,\r\n\r\naccording to [XDG Desktop Entry spec](https://specifications.freedesktop.org/desktop-entry-spec/latest/ar01s05.html), desktop files accept `Path` entry, which modifies working directory of run program:\r\n\r\n> Path: If entry is of type Application, the working directory to run the program in.\r\n\r\nRofi doesn't change working directory of run program and leaves it the same as Rofi's one. \r\n\r\n## Version\r\n\r\nVersion: 1.2.0\r\n\r\n## Configuration\r\n\r\n[gist](https://gist.github.com/mgoral/50b5b9a2bda3cc93e65524513620f1cf)\r\n\r\n## Launch Command\r\n\r\nrofi -show drun\r\n\r\n## Steps to reproduce\r\n\r\n* Create the following .desktop file wherever it can be accessed by Rofi (e.g. in \"$HOME/.local/share/applications\"):\r\n\r\n    ```\r\n    [Desktop Entry]\r\n    Encoding=UTF-8\r\n    Name=test pwd\r\n    Type=Application\r\n    Path=\"/etc\"\r\n    Exec=\"pwd\"\r\n```\r\n\r\n* cd && rofi -show drun\r\n* select \"test pwd\" from the list\r\n\r\n## What behaviour you see\r\n\r\nApplication prints my home path.\r\n\r\n## What behaviour you expect to see\r\n\r\nApplication should print \"/etc\".\r\n"},"comment":{"url":"https://api.github.com/repos/DaveDavenport/rofi/issues/comments/254000038","html_url":"https://github.com/DaveDavenport/rofi/issues/482#issuecomment-254000038","issue_url":"https://api.github.com/repos/DaveDavenport/rofi/issues/482","id":254000038,"user":{"login":"mgoral","id":854316,"avatar_url":"https://avatars.githubusercontent.com/u/854316?v=3","gravatar_id":"","url":"https://api.github.com/users/mgoral","html_url":"https://github.com/mgoral","followers_url":"https://api.github.com/users/mgoral/followers","following_url":"https://api.github.com/users/mgoral/following{/other_user}","gists_url":"https://api.github.com/users/mgoral/gists{/gist_id}","starred_url":"https://api.github.com/users/mgoral/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgoral/subscriptions","organizations_url":"https://api.github.com/users/mgoral/orgs","repos_url":"https://api.github.com/users/mgoral/repos","events_url":"https://api.github.com/users/mgoral/events{/privacy}","received_events_url":"https://api.github.com/users/mgoral/received_events","type":"User","site_admin":false},"created_at":"2016-10-15T17:57:46Z","updated_at":"2016-10-15T17:57:46Z","body":"Thanks. :)\r\n\r\nI think they both can (and sometimes must) be quoted [spec](https://specifications.freedesktop.org/desktop-entry-spec/latest/ar01s06.html):\r\n\r\n> Arguments may be quoted in whole. If an argument contains a reserved character the argument must be quoted. The rules for quoting of arguments is also applicable to the executable name or path of the executable program as provided.\r\n\r\nSo the following is correct Exec entry for example:\r\n\r\n```Exec=\"ls\" \"-hal\" \"/home/something something\"```"}}
{"actor":{"display_login":"mgoral"}}