<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2015-01-12 0:00 GMT+01:00 Karl Auer <span dir="ltr"><<a href="mailto:kauer@biplane.com.au" target="_blank">kauer@biplane.com.au</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">On Sun, 2015-01-11 at 16:36 -0600, C de-Avillez wrote (quoting someone<br>
else):<br>
<span class="">> > > The only line that doesn't seem to work in my script when run from<br>
> > > Nautilus, is that ”megals” line, everything else seems to work.<br>
<br>
</span>If just one line doesn't work, then the script is running. That leaves<br>
the environment - especially the path - and non-escaped characters...<br>
you have a few quotes in there that might need escaping.<br></blockquote><div><br></div><div>I'm not sure I know what lines you are referring to.</div><div>Remember that those lin I quoted work when I run it in a terminal.</div><div><br></div><div>Before I got home after work to read my mail I actually think I suddenly knew what was wrong, but I didn't do any tests yet. I think it could be an environment thing, just like you and C de-Avillez mentioned. The megals command, and all the other MegaTools commands requires login and password. To avoid hard coding that, I use the ~/.megarc file, and it lookd like this:</div><div><br></div><div><div>[Login]</div><div>Username = <a href="mailto:myname@address.com">myname@address.com</a></div><div>Password = blahblahblahblahblah</div></div><div><br></div><div>The rights are set to rw- --- ---</div><div><br></div><div>Anyway, I suspect that megals doesn't read the ~/.megarc file when run from Nautilus, so I probably only get an authorisation error, which I can not see since there is no terminal… Maybe I can, and should, pipe it to yad (a great Zenity fork that I use a lot).</div><div><br></div><div>I think I can specify the rc file when running the command. If not, I can always use the --user and --password flags to enter it in the script (just for testing). Other ideas are welcome, of course…</div><div><br></div><div>Maybe this isn't what is the problem at all, I'm only guessing here, but I will find out… but right now I'm hungry…</div><div><br></div><div><br></div><div><br></div><div><br></div><div><div>Kind regards</div><div><br></div><div>Johnny Rosenberg</div><div>ジョニー・ローゼンバーグ</div></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
Regards, K.<br>
<span class=""><font color="#888888"><br>
--<br>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
Karl Auer (<a href="mailto:kauer@biplane.com.au">kauer@biplane.com.au</a>)<br>
<a href="http://www.biplane.com.au/kauer" target="_blank">http://www.biplane.com.au/kauer</a><br>
<a href="http://twitter.com/kauer389" target="_blank">http://twitter.com/kauer389</a><br>
<br>
GPG fingerprint: 3C41 82BE A9E7 99A1 B931 5AE7 7638 0147 2C3C 2AC4<br>
Old fingerprint: EC67 61E2 C2F6 EB55 884B E129 072B 0AF0 72AA 9882<br>
</font></span><div class=""><div class="h5"><br>
<br>
<br>
--<br>
ubuntu-users mailing list<br>
<a href="mailto:ubuntu-users@lists.ubuntu.com">ubuntu-users@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-users" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-users</a><br>
</div></div></blockquote></div><br></div></div>