My problem is this: I have a software installed with Wine (Brain Explorer 2, it's free); certain functions of this software requires using the browser (in this case google chrome; firefox isn't an option since this needs flash player...). Then, Explorer opens browser. When you are browsing in the website, there is an option that loads data from browser to software, then the browser ask for external protocol for aibe:link (aibe is for Allen Institute Brain Explorer, I suppose), that ends on launch xdg-open, which as far as I know it handles the default apps.

Basically this is what happens

So I guess must try config the default apps for aibe links, but honestly I'm lost. The most I figured is that is similar to magnet links with torrent. Of course on windows there is no such a problem since is designed for it. But how I make this work here on Ubuntu?

  • Sure, here is the Link – zx_k9 May 26 '15 at 19:37
  • (just in case didn't noticed, click on "link" to see my reg on google drive :P) – zx_k9 May 27 '15 at 3:16
  • Se agradece la ayuda, buen hombre :) – zx_k9 May 28 '15 at 5:49
  • This happens: $ winebrowser aibe://human.brain-map.org/mri_viewer/data/heatmap/probe_values?atlas=351&resolution=samples&probes=1036443&selectedDonor=9861&well=2569&colormap=redgreen&exprRange=-6,6 [1] 9805 [2] 9806 [3] 9807 [4] 9809 [5] 9810 [6] 9811 [2] Hecho resolution=samples [3] Hecho probes=1036443 [4] Hecho selectedDonor=9861 [5]- Hecho well=2569 [6]+ Hecho colormap=redgreen – zx_k9 May 28 '15 at 6:55
  • Basically, it just opens the data but nothing happens. – zx_k9 May 28 '15 at 6:59

Making it work:

  1. Run gedit ~/.local/share/applications/allen-brainexplorer.desktop
  2. A text editor will open up. Paste the following contents on it:

    [Desktop Entry]
    Name=Brain Explorer 2
    Exec=wine "%ProgramFiles%\Allen Institute\Brain Explorer 2\BrainExplorer2.exe" "/url" "%u"
  3. Save the file and close the text editor.
  4. Run the following command to "install" the newly-created file in the system:

    xdg-desktop-menu install ~/.local/share/applications/allen-brainexplorer.desktop
  5. When the browser prompts you how to handle this type of link, choose Run Application.

How I got it:

I've installed Brain Explorer 2 on a Windows XP VM so I could open the regedit and find that key:


That key had this content:

"C:\Program files\Allen Institute\Brain Explorer 2\BrainExplorer2.exe" /url "%1"

This means that the /url option allows to pass the URL to BrainExplorer. Example:

wine "/home/$USER/.wine/dosdevices/drive_c/Program files/Allen Institute/Brain Explorer 2/BrainExplorer2.exe" /url "aibe://human.brain-map.org/mri_viewer/data/heatmap/probe_values?atlas=351&resolu‌​tion=samples&probes=1036443&selectedDonor=9861&well=2569&colormap=redgreen&exprRa‌​nge=-6,6"
  • For instance, I replaced the Exec line of .desktop file with ** "sh -c "cd /home/UserFolder/.wine/drive_c/Program\ Files\ (x86)/Allen\ Institute/Brain\ Explorer\ 2; wine BrainExplorer2.exe" "/url" "%u" **. Then followed the steps. The browser shows BrainExplorer2 to open aibe:link, and the program opens correctly but does not load any microarray data as it does in Windows :/ – zx_k9 Jun 1 '15 at 6:19
  • Also tried from Firefox and Chrome, there wasn't a difference. – zx_k9 Jun 1 '15 at 6:25
  • So in my guess, what is working is xdg-open, which directs aibe links by default to BrainExplorer2. But isn't showing the data that is supposed to show as in Windows. Something is missing. – zx_k9 Jun 1 '15 at 6:29
  • Or maybe my exec line is wrong somehow XD – zx_k9 Jun 1 '15 at 6:36
  • Try running this on a terminal: wine "/home/$USER/.wine/dosdevices/drive_c/Program files (x86)/Allen Institute/Brain Explorer 2/BrainExplorer2.exe" /url "aibe://human.brain-map.org/mri_viewer/data/heatmap/probe_values?atlas=351&resolu‌​tion=samples&probes=1036443&selectedDonor=9861&well=2569&colormap=redgreen&exprRa‌​nge=-6,6" – 0x2b3bfa0 Jun 1 '15 at 7:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.