linuxdcpp-team team mailing list archive
-
linuxdcpp-team team
-
Mailing list archive
-
Message #00553
[Bug 361735] Re: Improved magnet link support
Meh, I was afraid you were going to be like that ;P. Luckily it seems
that commandline args can be passed directly to mainwindow after
WulforManager::start and before entering the gtk main loop. (I was
afraid that I have to store them in wulformanager for passing...). So
this will be changed in the next commit.
arg description also in next commit. o_O we have a man page. Ok, just
kidding I've noticed it before, but wouldn't have remembered it. I'll
try to document them. No idea if we can synchronize them automatically
with the code.
Grah, why can't glib/gtk doc. explicitly say that you have to free
something. Or even a link to _free function from _new would be a plus.
Anyway I'll add the free (and also freeing of the parsed args) in the
next commit.
I was thinking at first to only allow one connect/magnet per command,
because of the search limit of 5 seconds, but decided to add the extra
argument parsing.. So yes multiple -c and -m are possible, and can be
implemented, but I don't think we should remove the optionless method.
Since the program 'can do the right thing', if passed well-formatted
URI/magnet why shouldn't it be allowed without options?
N_() was for not translating and only mark it for text extraction? Since
I believe the GLIB is supposed to translate these.
You'll need a better IRC-client :D. But anyway you're the native
speaker, so if existing sounds better I don't really care.
--RZ
--
Improved magnet link support
https://bugs.launchpad.net/bugs/361735
You received this bug notification because you are a member of LinuxDC++
Team, which is subscribed to LinuxDC++.
Status in Linux DC++: In Progress
Bug description:
There should be a way to open magnet links from terminal.
Something like that: linuxdcpp -m 'magnet:?xt=urn:ed2k:31D6CFE0D16AE931B73C59D7E0C089C0&xl=0&dn=zero_len.fil&xt=urn:bitprint:3I42H3S6NNFQ2MSVX7XZKYAYSCX5QBYJ.LWPNACQDBZRYXW3VHJVCJ64QBZNGHOHHHZWCLNQ&xt=urn:md5:D41D8CD98F00B204E9800998ECF8427E'