Affichage des articles dont le libellé est XMir. Afficher tous les articles
Affichage des articles dont le libellé est XMir. Afficher tous les articles

vendredi 29 janvier 2016

Easier XMir Setup



So there is some questioning I see going on about how to run things like Firefox efficiently and well. So I figured I'd write up a little something for it.

First you'll want to set your DPI in ~/.Xdefaults, as I have a Nexus 7, mine looks similar to this:
Xft.dpi: 240

Note that you may need to do some additional tweaking.
Now that you have Xdefaults made, install the ubuntu-pocket-desktop and matchbox-window-manager packages (along with the program you wish to use, for this tutorial, I'll use libreoffice).

Create a file in /bin called wm-wrapper.sh (or whatever you choose here, just remember the name), fill it with:

Code:


#!/bin/bash
matchbox-window-manager -use_titlebar no -use_dialog_mode const-horiz &
exec $@


and save it, then chmod a+x it.

Now, navigate to /usr/share/applications/ and open the .desktop file for the application you are wanting to run. Add the following lines under [Desktop]:

Code:


X-Ubuntu-Touch=true
X-Ubuntu-XMir-Enable=true


Change the Exec line so that your wrapper (in my case wm-wrapper.sh) is in front of the executable, such that the line becomes (or similar):

Code:


Exec=/bin/wm-wrapper.sh libreoffice %U

Save it, then search for your application in the Unity Scopes. Open it up and you should see your application running as an XMir app easy. For future applications, you will simply need to do the changes to it's .desktop file.

Download from this link