A PPA for the Unity2D fallback patch
Shahar Or
mightyiampresence at gmail.com
Sun Apr 1 14:29:31 UTC 2012
On 1 April 2012 16:39, Haggai Eran <haggai.eran at gmail.com> wrote:
> I think I have an idea. I'd like to use you as a test subject before I
> create a package, if that's okay :)
>
Sure, I'll try right away.
> We can override the selected desktop in an Xsession script. Why don't you
> try to create a file named /etc/X11/Xsession.d/50_unity_2d_rtl_fallback(as root), with the following contents:
>
> # This file is sourced by Xsession(5), not executed.
> # Select the right session if we have already done
> # an unity check, try to check it other
>
> if [ "x$DESKTOP_SESSION" = "xubuntu" ] && [ -x /usr/bin/gettext ] && \
> [ "x`/usr/bin/gettext --domain=gtk30 default:LTR`" = "xdefault:RTL" ];
> then
> # Using a right-to-left locale. Fallback to Unity2D.
> DESKTOP_SESSION="ubuntu-2d"
> GDMSESSION="ubuntu-2d"
> STARTUP="`echo $STARTUP | sed
> 's/--session=ubuntu\>/--session=ubuntu-2d/'`"
> fi
>
>
> This method also has an advantage over patching the unity_support_test
> program, since it can be packaged independently of the nux packages.
>
It should not be independent. It should be in the nux package.
Another issue: what happens when there's only Unity and not Unity 2D
installed?
>
> Haggai
>
Thanks and Blessings,
Shahar
>
> On 1 April 2012 00:15, Shahar Or <mightyiampresence at gmail.com> wrote:
>
>>
>> On Mar 31, 2012 10:54 PM, "Haggai Eran" <haggai.eran at gmail.com> wrote:
>> >
>> > I see. The existance of the file /tmp/unity_support_test.0 is causing
>> the test to pass. I think it should have been deleted when you rebooted,
>> but apparently it didn't... I'll try to think of a workaround that works
>> even when this file exists.
>>
>> K I see the problem. This file is global. Because this test is global.
>> Our test is per user.
>>
>> This has to be an additional mechanism that doesn't get overridden by the
>> existence of this file.
>>
>> >
>> > Haggai
>> >
>> > On 31 March 2012 22:44, Shahar Or <mightyiampresence at gmail.com> wrote:
>> >>
>> >>
>> >>
>> >> On 31 March 2012 22:23, Haggai Eran <haggai.eran at gmail.com> wrote:
>> >>>
>> >>> Okay,
>> >>>
>> >>> Would you mind running these two commands and writing the results?
>> >>>>
>> >>>> /usr/lib/nux/unity_support_test ; echo $?
>> >>>> ls /tmp/unity_support_test*
>> >>
>> >> Script started on Sat 31 Mar 2012 10:41:27 PM IDT
>> >> test at shahar-desktop:~$ /usr/lib/nux/unity_support_test ; echo $?
>> >> 0
>> >> test at shahar-desktop:~$ ls /tmp/unity_support_test*
>> >> /tmp/unity_support_test.0 /tmp/unity_support_test.1
>> >> test at shahar-desktop:~$ exit
>> >>
>> >> Script done on Sat 31 Mar 2012 10:42:20 PM IDT
>> >>>
>> >>>
>> >>> Thanks,
>> >>> Haggai
>> >>>
>> >>> On 31 March 2012 22:02, Shahar Or <mightyiampresence at gmail.com>
>> wrote:
>> >>>>
>> >>>> On 31 March 2012 19:18, Haggai Eran <haggai.eran at gmail.com> wrote:
>> >>>>>
>> >>>>> It is independent. Please try running
>> >>>>>>
>> >>>>>> /usr/lib/nux/unity_support_test -p
>> >>>>>
>> >>>>> and tell me what the results are.
>> >>>>
>> >>>>
>> >>>> The results are that while the user is logged in a Unity session and
>> the desktop is Hebrew, the tests all show yes excluding the locale test
>> which shows no and thus the final line is the Unity is no. But Unity still
>> runs. Not Unity 2D.
>> >>>>
>> >>>>>
>> >>>>>
>> >>>>> Haggai
>> >>>>>
>> >>>>> On 31 March 2012 19:12, Shahar Or <mightyiampresence at gmail.com>
>> wrote:
>> >>>>>>
>> >>>>>>
>> >>>>>> On Mar 31, 2012 6:39 PM, "Haggai Eran" <haggai.eran at gmail.com>
>> wrote:
>> >>>>>> >
>> >>>>>> > Yes, but I think /tmp files are cleaned every reboot.
>> >>>>>> I did reboot. Not working. What could be different? Does our test
>> depend on other tests or is it independent?
>> >>>>>>
>> >>>>>> >
>> >>>>>> > Haggai
>> >>>>>> >
>> >>>>>> > בתאריך 2012 3 31 18:09, מאת "Shahar Or" <
>> mightyiampresence at gmail.com>:
>> >>>>>> >
>> >>>>>> >> Wouldn't that be the case with any existing installation? That
>> the file exists?
>> >>>>>> >>
>> >>>>>> >> On Mar 31, 2012 5:53 PM, "Haggai Eran" <haggai.eran at gmail.com>
>> wrote:
>> >>>>>> >>>
>> >>>>>> >>> Hi Shahar,
>> >>>>>> >>>
>> >>>>>> >>> I tested the PPA package on my netbook. One thing I know that
>> might prevent it from working is the cache that the test keeps in /tmp. If
>> it found your system to be capable of running Unity (3D) it keeps a file in
>> /tmp named /tmp/unity_support_test.0. If you ran the script before
>> installing the package, then this file might cause the test to pass.
>> >>>>>> >>>
>> >>>>>> >>> Haggai
>> >>>>>> >>>
>> >>>>>> --
>> >>>>>> Ubuntu-RTL mailing list
>> >>>>>> Ubuntu-RTL at lists.ubuntu.com
>> >>>>>> Modify settings or unsubscribe at:
>> https://lists.ubuntu.com/mailman/listinfo/ubuntu-rtl
>> >>>>>>
>> >>>>>
>> >>>>>
>> >>>>> --
>> >>>>> Ubuntu-RTL mailing list
>> >>>>> Ubuntu-RTL at lists.ubuntu.com
>> >>>>> Modify settings or unsubscribe at:
>> https://lists.ubuntu.com/mailman/listinfo/ubuntu-rtl
>> >>>>>
>> >>>>
>> >>>>
>> >>>> --
>> >>>> Ubuntu-RTL mailing list
>> >>>> Ubuntu-RTL at lists.ubuntu.com
>> >>>> Modify settings or unsubscribe at:
>> https://lists.ubuntu.com/mailman/listinfo/ubuntu-rtl
>> >>>>
>> >>>
>> >>>
>> >>> --
>> >>> Ubuntu-RTL mailing list
>> >>> Ubuntu-RTL at lists.ubuntu.com
>> >>> Modify settings or unsubscribe at:
>> https://lists.ubuntu.com/mailman/listinfo/ubuntu-rtl
>> >>>
>> >>
>> >>
>> >> --
>> >> Ubuntu-RTL mailing list
>> >> Ubuntu-RTL at lists.ubuntu.com
>> >> Modify settings or unsubscribe at:
>> https://lists.ubuntu.com/mailman/listinfo/ubuntu-rtl
>> >>
>> >
>> >
>> > --
>> > Ubuntu-RTL mailing list
>> > Ubuntu-RTL at lists.ubuntu.com
>> > Modify settings or unsubscribe at:
>> https://lists.ubuntu.com/mailman/listinfo/ubuntu-rtl
>> >
>>
>>
>> --
>> Ubuntu-RTL mailing list
>> Ubuntu-RTL at lists.ubuntu.com
>> Modify settings or unsubscribe at:
>> https://lists.ubuntu.com/mailman/listinfo/ubuntu-rtl
>>
>>
>
> --
> Ubuntu-RTL mailing list
> Ubuntu-RTL at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-rtl
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-rtl/attachments/20120401/ba550012/attachment.html>
More information about the Ubuntu-RTL
mailing list