{"action":"opened","issue":{"url":"https://api.github.com/repos/megastep/makeself/issues/58","labels_url":"https://api.github.com/repos/megastep/makeself/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/megastep/makeself/issues/58/comments","events_url":"https://api.github.com/repos/megastep/makeself/issues/58/events","html_url":"https://github.com/megastep/makeself/issues/58","id":115562085,"number":58,"title":"Mimetype task on Ubuntu 14.04","user":{"login":"tresf","id":6345473,"avatar_url":"https://avatars.githubusercontent.com/u/6345473?v=3","gravatar_id":"","url":"https://api.github.com/users/tresf","html_url":"https://github.com/tresf","followers_url":"https://api.github.com/users/tresf/followers","following_url":"https://api.github.com/users/tresf/following{/other_user}","gists_url":"https://api.github.com/users/tresf/gists{/gist_id}","starred_url":"https://api.github.com/users/tresf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tresf/subscriptions","organizations_url":"https://api.github.com/users/tresf/orgs","repos_url":"https://api.github.com/users/tresf/repos","events_url":"https://api.github.com/users/tresf/events{/privacy}","received_events_url":"https://api.github.com/users/tresf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-06T18:35:15Z","updated_at":"2015-11-06T18:35:15Z","closed_at":null,"body":"The symptom is that the `update-desktop-database` utility is not working properly with `makeself` on Ubuntu 14.04.  What does that have to do with makeself?  I'm not entirely sure, but please read on...\r\n\r\nThis is an extremely strange bug and I'd like some help isolating the cause.  I'll start by explaining my [use-case](https://github.com/qzind/qz-print/blob/1.9/ant/linux/linux-installer.sh.in)... and [the downstream bug report](https://github.com/qzind/qz-print/issues/94#issuecomment-154415102).\r\n\r\n 1. Script echos a `foo.desktop` file to `/usr/share/applications/foo.desktop`\r\n   <br>**`foo-install.sh`**\r\n   ```bash\r\n#!/bin/bash\r\n\r\n# CREATE MIMETYPE FILE\r\necho \"[Desktop Entry]\r\nType=Application\r\nName=Foo\r\nExec=x-terminal-emulator\r\nPath=/\r\nIcon=utilities-terminal\r\nMimeType=application/x-foo;x-scheme-handler/foo;\r\nTerminal=false\r\nComment=Foo Comment\" > /usr/share/applications/foo.desktop\r\nchmod 755 foo-install.sh\r\n\r\n# REGISTER MIMETYPE FILE\r\nupdate-desktop-database\r\n```\r\n\r\n   <br>... then...\r\n   ```bash\r\nmakeself . foo-1.0.0.run \"Foo Installer\" \"./foo-install.sh\"\r\n```\r\n\r\n 2. Test results\r\n\r\n   ```bash\r\n    xdg-open foo:bar\r\n    ```\r\n\r\n   |Ubuntu Version | Makeself Version | Test Results                       |\r\n   |-----------------------------|------------|-----------------------------------|\r\n   | 12.04 x64   | 2.1.5           |  :white_check_mark: Pass |\r\n   | 14.04 x64   | 2.2.0           |   :no_entry: Fail |\r\n\r\nNow I've tried many, many different test scenarios, such as using `install`, `nohup`, spawning a new process, etc, but the only thing that seems to fix the bug is to build the `.run` package from Ubuntu 12.04.\r\n\r\nThe expected behavior is that `xdg-open foo:bar` attempts to open `x-terminal-emulator` with the parameter `bar`, which is a registered URI/Mimetype for a web browser to use (similar in how Ubuntu registers `apt://` for the Software Center).\r\n\r\nThe actual behavior is that the `update-desktop-database` command executes properly (I can pipe its output to a file and see it is executing) but the Ubuntu desktop doesn't register the command properly.\r\n\r\nSo my question is... how does one begin troubleshooting a bug like this?"}}