Native GTK apps in Mir
Daniel van Vugt
daniel.van.vugt at canonical.com
Wed Aug 6 05:23:28 UTC 2014
That's odd. GTK apps are running fine on my cleanly installed utopic
laptop. It's just the desktop that's crashing. I could easily have
broken that desktop, somehow. So assume it still works. Certainly it
does work on a clean utopic laptop I've just tried.
Amending the instructions so they're more likely to work:
sudo -s
apt-get install mir-demos
mir_demo_server_shell --vt 1 &
env XDG_RUNTIME_DIR=/run/user/1000 \
DISPLAY="" \
MIR_SOCKET=/tmp/mir_socket \
/usr/games/gnome-mahjongg
# Ctrl+Alt+F1
Incomplete features you are expected to encounter:
* Menus
* Dialogs
* Non-arrow cursors
* Mir touch event support not implemented - mouse only?
* Random crashes/non-starting apps
But it's still nice to have something on screen. And to be able to run
utopic's desktop apps unmodified inside Mir is quite nice.
On 06/08/14 12:11, Daniel van Vugt wrote:
> OK, a full example is:
>
> sudo apt-get install mir-demos
> sudo mir_demo_server_shell --vt 1
> sudo env XDG_RUNTIME_DIR=/run/user/1000 MIR_SOCKET=/tmp/mir_socket
> /usr/games/gnome-mahjongg
> # Ctrl+Alt+F1
>
> It was working all weekend and up to yesterday. But for some reason
> today all GTK apps are now crashing (SIGSEGV) for me. So I'll have to
> look into what has changed.
>
>
>
> On 06/08/14 11:59, Oliver Ries wrote:
>> On Tue, Aug 5, 2014 at 8:43 PM, Daniel van Vugt
>> <daniel.van.vugt at canonical.com <mailto:daniel.van.vugt at canonical.com>>
>> wrote:
>>
>> And it's been promoted now! If you're running utopic then your GTK
>> apps can render directly to a Mir server (with the right environment
>> variables).
>>
>>
>> do we have the magic sauce documented somewhere?
>>
>> Still, please consider this a tech preview. There are significant
>> bugs that need fixing yet.
>>
>>
>> bugs or missing features (I'd consider the absence of sub menu rendering
>> a missing feature... but that might be nitpicking;)
>>
>> good job everyone,
>> O.
>>
>>
>>
>>
>> On 04/08/14 10:17, Daniel van Vugt wrote:
>>
>> Following on from the proof of concept in May, native Mir
>> support for
>> GTK apps has landed in utopic-proposed (3.12.2-0ubuntu6):
>>
>> https://launchpad.net/ubuntu/+__source/gtk+3.0
>> <https://launchpad.net/ubuntu/+source/gtk+3.0>
>>
>> Basic stuff works but more work is required, if anyone wants to
>> help out
>> with the immediate major stuff:
>>
>> 1. Cursor API not implemented (several GTK apps think this as a
>> reason
>> to crash).
>>
>> 2. Menus and dialogs not displayed correctly.
>>
>> - Daniel
>>
>>
>>
>> --
>> Mir-devel mailing list
>> Mir-devel at lists.ubuntu.com <mailto:Mir-devel at lists.ubuntu.com>
>> Modify settings or unsubscribe at:
>> https://lists.ubuntu.com/__mailman/listinfo/mir-devel
>> <https://lists.ubuntu.com/mailman/listinfo/mir-devel>
>>
>>
>
More information about the Mir-devel
mailing list