{"action":"closed","number":9622,"pull_request":{"url":"https://api.github.com/repos/NixOS/nixpkgs/pulls/9622","id":44051550,"html_url":"https://github.com/NixOS/nixpkgs/pull/9622","diff_url":"https://github.com/NixOS/nixpkgs/pull/9622.diff","patch_url":"https://github.com/NixOS/nixpkgs/pull/9622.patch","issue_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/9622","number":9622,"state":"closed","locked":false,"title":"environment.pathsToLink = [ \"/share\" ];","user":{"login":"obadz","id":3359345,"avatar_url":"https://avatars.githubusercontent.com/u/3359345?v=3","gravatar_id":"","url":"https://api.github.com/users/obadz","html_url":"https://github.com/obadz","followers_url":"https://api.github.com/users/obadz/followers","following_url":"https://api.github.com/users/obadz/following{/other_user}","gists_url":"https://api.github.com/users/obadz/gists{/gist_id}","starred_url":"https://api.github.com/users/obadz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/obadz/subscriptions","organizations_url":"https://api.github.com/users/obadz/orgs","repos_url":"https://api.github.com/users/obadz/repos","events_url":"https://api.github.com/users/obadz/events{/privacy}","received_events_url":"https://api.github.com/users/obadz/received_events","type":"User","site_admin":false},"body":"It took me a few ours to figure out why mime file associations would no longer work and thumbnails in file managers wouldn't display after I got rid of GNOME.\r\n\r\nMost desktops have added `/share` to `environment.pathsToLink` but that's not the default in system-path:\r\n\r\n```\r\n./e19.nix:    environment.pathsToLink = [ \"/etc/enlightenment\" \"/etc/xdg\" \"/share/enlightenment\" \"/share/elementary\" \"/share/applications\" \"/share/locale\" \"/share/icons\" \"/share/themes\" \"/share/mime\" \"/share/desktop-directories\" ];\r\n./xfce.nix:    environment.pathsToLink = [ \"/share/xfce4\" \"/share/themes\" \"/share/mime\" \"/share/desktop-directories\" \"/share/gtksourceview-2.0\" ];\r\n./gnome3.nix:    environment.pathsToLink = [ \"/share\" ];\r\n./kde5.nix:    environment.pathsToLink = [ \"/share\" ];\r\n./kde4.nix:    environment.pathsToLink = [ \"/share\" ];\r\n```\r\n\r\n`system-path.nix` had:\r\n```\r\n        \"/share/doc\"\r\n        \"/share/emacs\"\r\n        \"/share/info\"\r\n        \"/share/man\"\r\n        \"/share/nano\"\r\n        \"/share/org\"\r\n        \"/share/terminfo\"\r\n        \"/share/vim-plugins\"\r\n```\r\n\r\nWouldn't be a reasonable default to include `/share` there so that those of us who don't use desktops can use the mime stuff seamlessly? At the very least we should be adding `/share/mime` which is mentioned in `system-path.nix`:\r\n\r\n```nix\r\npostBuild =\r\n        ''\r\n          if [ -x $out/bin/update-mime-database -a -w $out/share/mime/packages ]; then\r\n              XDG_DATA_DIRS=$out/share $out/bin/update-mime-database -V $out/share/mime > /dev/null\r\n          fi\r\n```","created_at":"2015-09-02T22:41:47Z","updated_at":"2015-09-07T19:17:46Z","closed_at":"2015-09-07T19:17:46Z","merged_at":null,"merge_commit_sha":"922c6936c2afe827e29a7a72370ce206a3747dcd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/NixOS/nixpkgs/pulls/9622/commits","review_comments_url":"https://api.github.com/repos/NixOS/nixpkgs/pulls/9622/comments","review_comment_url":"https://api.github.com/repos/NixOS/nixpkgs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/9622/comments","statuses_url":"https://api.github.com/repos/NixOS/nixpkgs/statuses/0bb123d3bcbc4a292f1b252badc59adaca574177","head":{"label":"obadz:paths-to-link-share","ref":"paths-to-link-share","sha":"0bb123d3bcbc4a292f1b252badc59adaca574177","user":{"login":"obadz","id":3359345,"avatar_url":"https://avatars.githubusercontent.com/u/3359345?v=3","gravatar_id":"","url":"https://api.github.com/users/obadz","html_url":"https://github.com/obadz","followers_url":"https://api.github.com/users/obadz/followers","following_url":"https://api.github.com/users/obadz/following{/other_user}","gists_url":"https://api.github.com/users/obadz/gists{/gist_id}","starred_url":"https://api.github.com/users/obadz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/obadz/subscriptions","organizations_url":"https://api.github.com/users/obadz/orgs","repos_url":"https://api.github.com/users/obadz/repos","events_url":"https://api.github.com/users/obadz/events{/privacy}","received_events_url":"https://api.github.com/users/obadz/received_events","type":"User","site_admin":false},"repo":{"id":31687701,"name":"nixpkgs","full_name":"obadz/nixpkgs","owner":{"login":"obadz","id":3359345,"avatar_url":"https://avatars.githubusercontent.com/u/3359345?v=3","gravatar_id":"","url":"https://api.github.com/users/obadz","html_url":"https://github.com/obadz","followers_url":"https://api.github.com/users/obadz/followers","following_url":"https://api.github.com/users/obadz/following{/other_user}","gists_url":"https://api.github.com/users/obadz/gists{/gist_id}","starred_url":"https://api.github.com/users/obadz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/obadz/subscriptions","organizations_url":"https://api.github.com/users/obadz/orgs","repos_url":"https://api.github.com/users/obadz/repos","events_url":"https://api.github.com/users/obadz/events{/privacy}","received_events_url":"https://api.github.com/users/obadz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/obadz/nixpkgs","description":"Nix Packages collection","fork":true,"url":"https://api.github.com/repos/obadz/nixpkgs","forks_url":"https://api.github.com/repos/obadz/nixpkgs/forks","keys_url":"https://api.github.com/repos/obadz/nixpkgs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/obadz/nixpkgs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/obadz/nixpkgs/teams","hooks_url":"https://api.github.com/repos/obadz/nixpkgs/hooks","issue_events_url":"https://api.github.com/repos/obadz/nixpkgs/issues/events{/number}","events_url":"https://api.github.com/repos/obadz/nixpkgs/events","assignees_url":"https://api.github.com/repos/obadz/nixpkgs/assignees{/user}","branches_url":"https://api.github.com/repos/obadz/nixpkgs/branches{/branch}","tags_url":"https://api.github.com/repos/obadz/nixpkgs/tags","blobs_url":"https://api.github.com/repos/obadz/nixpkgs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/obadz/nixpkgs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/obadz/nixpkgs/git/refs{/sha}","trees_url":"https://api.github.com/repos/obadz/nixpkgs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/obadz/nixpkgs/statuses/{sha}","languages_url":"https://api.github.com/repos/obadz/nixpkgs/languages","stargazers_url":"https://api.github.com/repos/obadz/nixpkgs/stargazers","contributors_url":"https://api.github.com/repos/obadz/nixpkgs/contributors","subscribers_url":"https://api.github.com/repos/obadz/nixpkgs/subscribers","subscription_url":"https://api.github.com/repos/obadz/nixpkgs/subscription","commits_url":"https://api.github.com/repos/obadz/nixpkgs/commits{/sha}","git_commits_url":"https://api.github.com/repos/obadz/nixpkgs/git/commits{/sha}","comments_url":"https://api.github.com/repos/obadz/nixpkgs/comments{/number}","issue_comment_url":"https://api.github.com/repos/obadz/nixpkgs/issues/comments{/number}","contents_url":"https://api.github.com/repos/obadz/nixpkgs/contents/{+path}","compare_url":"https://api.github.com/repos/obadz/nixpkgs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/obadz/nixpkgs/merges","archive_url":"https://api.github.com/repos/obadz/nixpkgs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/obadz/nixpkgs/downloads","issues_url":"https://api.github.com/repos/obadz/nixpkgs/issues{/number}","pulls_url":"https://api.github.com/repos/obadz/nixpkgs/pulls{/number}","milestones_url":"https://api.github.com/repos/obadz/nixpkgs/milestones{/number}","notifications_url":"https://api.github.com/repos/obadz/nixpkgs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/obadz/nixpkgs/labels{/name}","releases_url":"https://api.github.com/repos/obadz/nixpkgs/releases{/id}","created_at":"2015-03-05T00:36:51Z","updated_at":"2015-06-22T14:44:15Z","pushed_at":"2015-09-07T16:14:57Z","git_url":"git://github.com/obadz/nixpkgs.git","ssh_url":"git@github.com:obadz/nixpkgs.git","clone_url":"https://github.com/obadz/nixpkgs.git","svn_url":"https://github.com/obadz/nixpkgs","homepage":null,"size":204869,"stargazers_count":0,"watchers_count":0,"language":"Nix","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"NixOS:master","ref":"master","sha":"eba96b9f563e5df30f6efb77ac3b6383afb0a5ce","user":{"login":"NixOS","id":487568,"avatar_url":"https://avatars.githubusercontent.com/u/487568?v=3","gravatar_id":"","url":"https://api.github.com/users/NixOS","html_url":"https://github.com/NixOS","followers_url":"https://api.github.com/users/NixOS/followers","following_url":"https://api.github.com/users/NixOS/following{/other_user}","gists_url":"https://api.github.com/users/NixOS/gists{/gist_id}","starred_url":"https://api.github.com/users/NixOS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NixOS/subscriptions","organizations_url":"https://api.github.com/users/NixOS/orgs","repos_url":"https://api.github.com/users/NixOS/repos","events_url":"https://api.github.com/users/NixOS/events{/privacy}","received_events_url":"https://api.github.com/users/NixOS/received_events","type":"Organization","site_admin":false},"repo":{"id":4542716,"name":"nixpkgs","full_name":"NixOS/nixpkgs","owner":{"login":"NixOS","id":487568,"avatar_url":"https://avatars.githubusercontent.com/u/487568?v=3","gravatar_id":"","url":"https://api.github.com/users/NixOS","html_url":"https://github.com/NixOS","followers_url":"https://api.github.com/users/NixOS/followers","following_url":"https://api.github.com/users/NixOS/following{/other_user}","gists_url":"https://api.github.com/users/NixOS/gists{/gist_id}","starred_url":"https://api.github.com/users/NixOS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NixOS/subscriptions","organizations_url":"https://api.github.com/users/NixOS/orgs","repos_url":"https://api.github.com/users/NixOS/repos","events_url":"https://api.github.com/users/NixOS/events{/privacy}","received_events_url":"https://api.github.com/users/NixOS/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/NixOS/nixpkgs","description":"Nix Packages collection","fork":false,"url":"https://api.github.com/repos/NixOS/nixpkgs","forks_url":"https://api.github.com/repos/NixOS/nixpkgs/forks","keys_url":"https://api.github.com/repos/NixOS/nixpkgs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NixOS/nixpkgs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NixOS/nixpkgs/teams","hooks_url":"https://api.github.com/repos/NixOS/nixpkgs/hooks","issue_events_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/events{/number}","events_url":"https://api.github.com/repos/NixOS/nixpkgs/events","assignees_url":"https://api.github.com/repos/NixOS/nixpkgs/assignees{/user}","branches_url":"https://api.github.com/repos/NixOS/nixpkgs/branches{/branch}","tags_url":"https://api.github.com/repos/NixOS/nixpkgs/tags","blobs_url":"https://api.github.com/repos/NixOS/nixpkgs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NixOS/nixpkgs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NixOS/nixpkgs/git/refs{/sha}","trees_url":"https://api.github.com/repos/NixOS/nixpkgs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NixOS/nixpkgs/statuses/{sha}","languages_url":"https://api.github.com/repos/NixOS/nixpkgs/languages","stargazers_url":"https://api.github.com/repos/NixOS/nixpkgs/stargazers","contributors_url":"https://api.github.com/repos/NixOS/nixpkgs/contributors","subscribers_url":"https://api.github.com/repos/NixOS/nixpkgs/subscribers","subscription_url":"https://api.github.com/repos/NixOS/nixpkgs/subscription","commits_url":"https://api.github.com/repos/NixOS/nixpkgs/commits{/sha}","git_commits_url":"https://api.github.com/repos/NixOS/nixpkgs/git/commits{/sha}","comments_url":"https://api.github.com/repos/NixOS/nixpkgs/comments{/number}","issue_comment_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/comments{/number}","contents_url":"https://api.github.com/repos/NixOS/nixpkgs/contents/{+path}","compare_url":"https://api.github.com/repos/NixOS/nixpkgs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NixOS/nixpkgs/merges","archive_url":"https://api.github.com/repos/NixOS/nixpkgs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NixOS/nixpkgs/downloads","issues_url":"https://api.github.com/repos/NixOS/nixpkgs/issues{/number}","pulls_url":"https://api.github.com/repos/NixOS/nixpkgs/pulls{/number}","milestones_url":"https://api.github.com/repos/NixOS/nixpkgs/milestones{/number}","notifications_url":"https://api.github.com/repos/NixOS/nixpkgs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NixOS/nixpkgs/labels{/name}","releases_url":"https://api.github.com/repos/NixOS/nixpkgs/releases{/id}","created_at":"2012-06-04T02:49:46Z","updated_at":"2015-09-06T20:16:45Z","pushed_at":"2015-09-07T19:17:16Z","git_url":"git://github.com/NixOS/nixpkgs.git","ssh_url":"git@github.com:NixOS/nixpkgs.git","clone_url":"https://github.com/NixOS/nixpkgs.git","svn_url":"https://github.com/NixOS/nixpkgs","homepage":null,"size":446728,"stargazers_count":775,"watchers_count":775,"language":"Nix","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":960,"mirror_url":null,"open_issues_count":905,"forks":960,"open_issues":905,"watchers":775,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/NixOS/nixpkgs/pulls/9622"},"html":{"href":"https://github.com/NixOS/nixpkgs/pull/9622"},"issue":{"href":"https://api.github.com/repos/NixOS/nixpkgs/issues/9622"},"comments":{"href":"https://api.github.com/repos/NixOS/nixpkgs/issues/9622/comments"},"review_comments":{"href":"https://api.github.com/repos/NixOS/nixpkgs/pulls/9622/comments"},"review_comment":{"href":"https://api.github.com/repos/NixOS/nixpkgs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/NixOS/nixpkgs/pulls/9622/commits"},"statuses":{"href":"https://api.github.com/repos/NixOS/nixpkgs/statuses/0bb123d3bcbc4a292f1b252badc59adaca574177"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":16,"review_comments":0,"commits":1,"additions":6,"deletions":0,"changed_files":1}}