<div dir="ltr"><font size="4"></font>On 1 April 2012 16:39, Haggai Eran <span dir="ltr"><<a href="mailto:haggai.eran@gmail.com">haggai.eran@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr">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 :)</div></blockquote><div><br>Sure, I'll try right away.<br><br></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

<div dir="ltr"><div><br></div><div>We can override the selected desktop in an Xsession script. Why don't you try to create a file named <font face="'courier new', monospace">/etc/X11/Xsession.d/50_unity_2d_rtl_fallback</font> (as root), with the following contents:</div>


<blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div><font face="'courier new', monospace"># This file is sourced by Xsession(5), not executed.</font></div></div><div><div><font face="'courier new', monospace"># Select the right session if we have already done</font></div>


</div><div><div><font face="'courier new', monospace"># an unity check, try to check it other</font></div></div><div><div><font face="'courier new', monospace"><br></font></div></div><div><div><font face="'courier new', monospace">if [ "x$DESKTOP_SESSION" = "xubuntu" ] && [ -x /usr/bin/gettext ] && \</font></div>


</div><div><div><font face="'courier new', monospace">   [ "x`/usr/bin/gettext --domain=gtk30 default:LTR`" = "xdefault:RTL" ]; then</font></div></div><div><div><font face="'courier new', monospace">    # Using a right-to-left locale. Fallback to Unity2D.</font></div>


</div><div><div><font face="'courier new', monospace">    DESKTOP_SESSION="ubuntu-2d"</font></div></div><div><div><font face="'courier new', monospace">    GDMSESSION="ubuntu-2d"</font></div>


</div><div><div><font face="'courier new', monospace">    STARTUP="`echo $STARTUP | sed 's/--session=ubuntu\>/--session=ubuntu-2d/'`"</font></div></div><div><div><font face="'courier new', monospace">fi</font></div>


</div></blockquote><div><div><br></div><div>This method also has an advantage over patching the unity_support_test program, since it can be packaged independently of the nux packages.</div></div></div></blockquote><div><br>

It should not be independent. It should be in the nux package.<br><br>Another issue: what happens when there's only Unity and not Unity 2D installed?<br></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

<div dir="ltr"><div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Haggai</div></font></span></div></div></blockquote><div><br>Thanks and Blessings,<br>Shahar <br></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

<div dir="ltr"><div><div><div class="h5">
<br><div class="gmail_quote">On 1 April <a href="tel:2012" value="+9722012" target="_blank">2012</a> 00:15, Shahar Or <span dir="ltr"><<a href="mailto:mightyiampresence@gmail.com" target="_blank">mightyiampresence@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><p><br>
On Mar 31, <a href="tel:2012" value="+9722012" target="_blank">2012</a> 10:54 PM, "Haggai Eran" <<a href="mailto:haggai.eran@gmail.com" target="_blank">haggai.eran@gmail.com</a>> wrote:<br>
><br>
> 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.</p>




</div><p>K I see the problem. This file is global. Because this test is global. Our test is per user.</p>
<p>This has to be an additional mechanism that doesn't get overridden by the existence of this file.</p><div><div><br>
><br>
> Haggai<br>
><br>
> On 31 March <a href="tel:2012" value="+9722012" target="_blank">2012</a> 22:44, Shahar Or <<a href="mailto:mightyiampresence@gmail.com" target="_blank">mightyiampresence@gmail.com</a>> wrote:<br>
>><br>
>><br>
>><br>
>> On 31 March <a href="tel:2012" value="+9722012" target="_blank">2012</a> 22:23, Haggai Eran <<a href="mailto:haggai.eran@gmail.com" target="_blank">haggai.eran@gmail.com</a>> wrote:<br>
>>><br>
>>> Okay,<br>
>>><br>
>>> Would you mind running these two commands and writing the results?<br>
>>>><br>
>>>> /usr/lib/nux/unity_support_test ; echo $?<br>
>>>> ls /tmp/unity_support_test*<br>
>><br>
>> Script started on Sat 31 Mar <a href="tel:2012" value="+9722012" target="_blank">2012</a> 10:41:27 PM IDT<br>
>> test@shahar-desktop:~$ /usr/lib/nux/unity_support_test ; echo $?<br>
>> 0<br>
>> test@shahar-desktop:~$ ls /tmp/unity_support_test*<br>
>> /tmp/unity_support_test.0  /tmp/unity_support_test.1<br>
>> test@shahar-desktop:~$ exit<br>
>><br>
>> Script done on Sat 31 Mar <a href="tel:2012" value="+9722012" target="_blank">2012</a> 10:42:20 PM IDT <br>
>>><br>
>>><br>
>>> Thanks,<br>
>>> Haggai<br>
>>><br>
>>> On 31 March <a href="tel:2012" value="+9722012" target="_blank">2012</a> 22:02, Shahar Or <<a href="mailto:mightyiampresence@gmail.com" target="_blank">mightyiampresence@gmail.com</a>> wrote:<br>
>>>><br>
>>>> On 31 March <a href="tel:2012" value="+9722012" target="_blank">2012</a> 19:18, Haggai Eran <<a href="mailto:haggai.eran@gmail.com" target="_blank">haggai.eran@gmail.com</a>> wrote:<br>
>>>>><br>
>>>>> It is independent. Please try running<br>
>>>>>><br>
>>>>>> /usr/lib/nux/unity_support_test -p<br>
>>>>><br>
>>>>> and tell me what the results are.<br>
>>>><br>
>>>><br>
>>>> 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.<br>




>>>>  <br>
>>>>><br>
>>>>><br>
>>>>> Haggai<br>
>>>>><br>
>>>>> On 31 March <a href="tel:2012" value="+9722012" target="_blank">2012</a> 19:12, Shahar Or <<a href="mailto:mightyiampresence@gmail.com" target="_blank">mightyiampresence@gmail.com</a>> wrote:<br>


>>>>>><br>
>>>>>><br>
>>>>>> On Mar 31, <a href="tel:2012" value="+9722012" target="_blank">2012</a> 6:39 PM, "Haggai Eran" <<a href="mailto:haggai.eran@gmail.com" target="_blank">haggai.eran@gmail.com</a>> wrote:<br>


>>>>>> ><br>
>>>>>> > Yes, but I think /tmp files are cleaned every reboot.<br>
>>>>>> I did reboot. Not working. What could be different? Does our test depend on other tests or is it independent?<br>
>>>>>><br>
>>>>>> ><br>
>>>>>> > Haggai<br>
>>>>>> ><br>
>>>>>> > בתאריך <a href="tel:2012" value="+9722012" target="_blank">2012</a> 3 <a href="tel:31%2018" value="+9723118" target="_blank">31 18</a>:09, מאת "Shahar Or" <<a href="mailto:mightyiampresence@gmail.com" target="_blank">mightyiampresence@gmail.com</a>>:<br>


>>>>>> ><br>
>>>>>> >> Wouldn't that be the case with any existing installation? That the file exists?<br>
>>>>>> >><br>
>>>>>> >> On Mar 31, <a href="tel:2012" value="+9722012" target="_blank">2012</a> 5:53 PM, "Haggai Eran" <<a href="mailto:haggai.eran@gmail.com" target="_blank">haggai.eran@gmail.com</a>> wrote:<br>


>>>>>> >>><br>
>>>>>> >>> Hi Shahar,<br>
>>>>>> >>><br>
>>>>>> >>> 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.<br>




>>>>>> >>><br>
>>>>>> >>> Haggai<br>
>>>>>> >>><br>
>>>>>> --<br>
>>>>>> Ubuntu-RTL mailing list<br>
>>>>>> <a href="mailto:Ubuntu-RTL@lists.ubuntu.com" target="_blank">Ubuntu-RTL@lists.ubuntu.com</a><br>
>>>>>> Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-rtl" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-rtl</a><br>
>>>>>><br>
>>>>><br>
>>>>><br>
>>>>> --<br>
>>>>> Ubuntu-RTL mailing list<br>
>>>>> <a href="mailto:Ubuntu-RTL@lists.ubuntu.com" target="_blank">Ubuntu-RTL@lists.ubuntu.com</a><br>
>>>>> Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-rtl" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-rtl</a><br>
>>>>><br>
>>>><br>
>>>><br>
>>>> --<br>
>>>> Ubuntu-RTL mailing list<br>
>>>> <a href="mailto:Ubuntu-RTL@lists.ubuntu.com" target="_blank">Ubuntu-RTL@lists.ubuntu.com</a><br>
>>>> Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-rtl" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-rtl</a><br>
>>>><br>
>>><br>
>>><br>
>>> --<br>
>>> Ubuntu-RTL mailing list<br>
>>> <a href="mailto:Ubuntu-RTL@lists.ubuntu.com" target="_blank">Ubuntu-RTL@lists.ubuntu.com</a><br>
>>> Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-rtl" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-rtl</a><br>
>>><br>
>><br>
>><br>
>> --<br>
>> Ubuntu-RTL mailing list<br>
>> <a href="mailto:Ubuntu-RTL@lists.ubuntu.com" target="_blank">Ubuntu-RTL@lists.ubuntu.com</a><br>
>> Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-rtl" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-rtl</a><br>
>><br>
><br>
><br>
> --<br>
> Ubuntu-RTL mailing list<br>
> <a href="mailto:Ubuntu-RTL@lists.ubuntu.com" target="_blank">Ubuntu-RTL@lists.ubuntu.com</a><br>
> Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-rtl" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-rtl</a><br>
><br>
</div></div><p></p>
<br>--<br>
Ubuntu-RTL mailing list<br>
<a href="mailto:Ubuntu-RTL@lists.ubuntu.com" target="_blank">Ubuntu-RTL@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-rtl" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-rtl</a><br>
<br></blockquote></div><br></div></div></div></div>
<br>--<br>
Ubuntu-RTL mailing list<br>
<a href="mailto:Ubuntu-RTL@lists.ubuntu.com">Ubuntu-RTL@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-rtl" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-rtl</a><br>
<br></blockquote></div><br></div>