{"action":"created","issue":{"url":"https://api.github.com/repos/netblue30/firejail/issues/514","repository_url":"https://api.github.com/repos/netblue30/firejail","labels_url":"https://api.github.com/repos/netblue30/firejail/issues/514/labels{/name}","comments_url":"https://api.github.com/repos/netblue30/firejail/issues/514/comments","events_url":"https://api.github.com/repos/netblue30/firejail/issues/514/events","html_url":"https://github.com/netblue30/firejail/issues/514","id":154799661,"number":514,"title":"an error in a config file prevents firejail to whitelist folders for firefox","user":{"login":"pirate486743186","id":429925,"avatar_url":"https://avatars.githubusercontent.com/u/429925?v=3","gravatar_id":"","url":"https://api.github.com/users/pirate486743186","html_url":"https://github.com/pirate486743186","followers_url":"https://api.github.com/users/pirate486743186/followers","following_url":"https://api.github.com/users/pirate486743186/following{/other_user}","gists_url":"https://api.github.com/users/pirate486743186/gists{/gist_id}","starred_url":"https://api.github.com/users/pirate486743186/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pirate486743186/subscriptions","organizations_url":"https://api.github.com/users/pirate486743186/orgs","repos_url":"https://api.github.com/users/pirate486743186/repos","events_url":"https://api.github.com/users/pirate486743186/events{/privacy}","received_events_url":"https://api.github.com/users/pirate486743186/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-13T21:02:43Z","updated_at":"2016-05-14T14:44:35Z","closed_at":null,"body":"I recently installed plasma5 with kubuntu 16.04\r\nI wasn't happy with it, so went back to linux mint 17.3\r\nI kept my original home in the process, my home is very old....\r\n\r\nnow, firefox doesn't launch inside firejail. It complaining about not been able to connect to the display....\r\n\r\nError: cannot open display: :0\r\n\r\nThis in my normal home, if i start a new user, it works fine. The firefox user profile isn't the problem either. Normal firefox seams fine.\r\n\r\nIf i remove these lines\r\n\r\nwhitelist ${DOWNLOADS}\r\nwhitelist ~/.mozilla\r\nwhitelist ~/.cache/mozilla/firefox\r\nwhitelist ~/dwhelper\r\ninclude /etc/firejail/whitelist-common.inc\r\n\r\nIt works, they are all folders that actually exist, and presume the include has some whitelisted folders that exist.\r\n\r\ndowngrading to Firefox 28 didn't help..."},"comment":{"url":"https://api.github.com/repos/netblue30/firejail/issues/comments/219224024","html_url":"https://github.com/netblue30/firejail/issues/514#issuecomment-219224024","issue_url":"https://api.github.com/repos/netblue30/firejail/issues/514","id":219224024,"user":{"login":"netblue30","id":13711990,"avatar_url":"https://avatars.githubusercontent.com/u/13711990?v=3","gravatar_id":"","url":"https://api.github.com/users/netblue30","html_url":"https://github.com/netblue30","followers_url":"https://api.github.com/users/netblue30/followers","following_url":"https://api.github.com/users/netblue30/following{/other_user}","gists_url":"https://api.github.com/users/netblue30/gists{/gist_id}","starred_url":"https://api.github.com/users/netblue30/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/netblue30/subscriptions","organizations_url":"https://api.github.com/users/netblue30/orgs","repos_url":"https://api.github.com/users/netblue30/repos","events_url":"https://api.github.com/users/netblue30/events{/privacy}","received_events_url":"https://api.github.com/users/netblue30/received_events","type":"User","site_admin":false},"created_at":"2016-05-14T14:44:35Z","updated_at":"2016-05-14T14:44:35Z","body":"When you reuse your home directory, you also reuse the configuration files for various programs - there are lots of them, usually dot files. You end up with executables from one system, and configuration files from another system. They don't always work, and you get weird bugs if the version of the executable doesn't match the version of the config file. In your case, X11 is breaking badly. It works in most of the cases, but when you whitelist your home directory it detects a missing file and prevents firefox from starting.\r\n\r\nThis is how you fix it: create a new user account, and move in that account only your personal files. If you want to move config files, I would say you need to merge them one by one."}}