Then you say we should run xdg-user-dirs-update at start up <div>of every sugar session, right?</div><div><br></div><div>Can be a solution, but if possible, I prefer avoid it,</div><div>sugar start up is already slow, adding more stuff,</div>
<div>not needed in the 99% of the cases is not a good idea.</div><div><br></div><div>Can we run xdg-users-dirs in sugar-build? </div><div><div> </div><div>Gonzalo<br><br><div class="gmail_quote">On Tue, Mar 26, 2013 at 1:33 PM, Daniel Narvaez <span dir="ltr"><<a href="mailto:dwnarvaez@gmail.com" target="_blank">dwnarvaez@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">It's looking inside the path pointed by the XDG_CONFIG_HOME<br>
environement variable, which can be set to any path. Running<br>
xdg-user-dirs-update at startup is necessary to ensure that<br>
user-dirs.dirs is created inside XDG_CONFIG_HOME, whatever that is.<br>
See the spec<br>
<br>
<a href="http://freedesktop.org/wiki/Software/xdg-user-dirs" target="_blank">http://freedesktop.org/wiki/Software/xdg-user-dirs</a><br>
<br>
The spec doesn't make very clear if running the script is<br>
responsibility of the desktop environment or of the login manager.<br>
Though, in practice, it seems that gnome-session is running it<br>
(through the xdg autostart spec) and I think it make sense to follow<br>
the same logic for sugar.<br>
<div class="HOEnZb"><div class="h5"><br>
On 26 March 2013 16:56, Gonzalo Odiard <<a href="mailto:gonzalo@laptop.org">gonzalo@laptop.org</a>> wrote:<br>
> I don't think so.<br>
><br>
> The problem is sugar-build is looking at the file user-dirs.dirs in<br>
> $HOME/sugar-build/state/home/default/config/<br>
> instead of using the file from $HOME/.config/<br>
><br>
> Gonzalo<br>
><br>
> On Tue, Mar 26, 2013 at 12:40 PM, Daniel Narvaez <<a href="mailto:dwnarvaez@gmail.com">dwnarvaez@gmail.com</a>><br>
> wrote:<br>
>><br>
>> On 26 March 2013 16:33, Gonzalo Odiard <<a href="mailto:gonzalo@laptop.org">gonzalo@laptop.org</a>> wrote:<br>
>> > Daniel, If you can solve this issue in sugar-build better, if not should<br>
>> > be<br>
>> > good have this documented.<br>
>><br>
>> Hi,<br>
>><br>
>> it's a sugar bug and I think it should be fixed in sugar. See<br>
>><br>
>> <a href="http://bugs.sugarlabs.org/ticket/4396" target="_blank">http://bugs.sugarlabs.org/ticket/4396</a><br>
><br>
><br>
<br>
<br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
Daniel Narvaez<br>
</font></span></blockquote></div><br></div></div>