<p dir="ltr">Use ~/.fonts instead</p>
<div class="gmail_quote">On Jun 22, 2016 5:06 PM, "Yash Agarwal" <<a href="mailto:agrwal.ysh94@gmail.com">agrwal.ysh94@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello, <div>the following is regarding this issue <span style="line-height:1.5"><a href="https://github.com/sugarlabs/edit-fonts-activity/issues/43" target="_blank">https://github.com/sugarlabs/edit-fonts-activity/issues/43</a></span></div><div><span style="line-height:1.5"><br></span></div><div><p style="margin-bottom:16px;color:rgb(51,51,51);font-family:"helvetica neue",helvetica,"segoe ui",arial,freesans,sans-serif,"apple color emoji","segoe ui emoji","segoe ui symbol";font-size:14px;line-height:22.4px;margin-top:0px">I can use the following to install a .ttf or .otf file in sugar but I require root access for it</p><div style="margin-bottom:16px;color:rgb(51,51,51);font-family:"helvetica neue",helvetica,"segoe ui",arial,freesans,sans-serif,"apple color emoji","segoe ui emoji","segoe ui symbol";font-size:14px;line-height:22.4px;overflow:visible"><pre style="font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:11.9px;margin-top:0px;margin-bottom:0px;font-stretch:normal;line-height:1.45;word-wrap:normal;padding:16px;overflow:auto;border-radius:3px;word-break:normal;background-color:rgb(247,247,247)">mv path/to/font/file /usr/share/fonts
fc-cache -f -v </pre></div><p style="margin-top:0px;color:rgb(51,51,51);font-family:"helvetica neue",helvetica,"segoe ui",arial,freesans,sans-serif,"apple color emoji","segoe ui emoji","segoe ui symbol";font-size:14px;line-height:22.4px;margin-bottom:0px">I can use<span> </span><code style="font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:11.9px;padding:0.2em 0px;margin:0px;border-radius:3px;background-color:rgba(0,0,0,0.0392157)">subprocess</code><span> </span>module to run the commands through my activity but how do I provide it root access or is there another way to do this?</p></div></div>
<br>_______________________________________________<br>
Sugar-devel mailing list<br>
<a href="mailto:Sugar-devel@lists.sugarlabs.org">Sugar-devel@lists.sugarlabs.org</a><br>
<a href="http://lists.sugarlabs.org/listinfo/sugar-devel" rel="noreferrer" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
<br></blockquote></div>