Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm trying to implement command-line arguments in https://launchpad.net/wakeonplan to use them in static quicklist but I can't test them because quickly run doesn't pass arguments to the script and bin/wakeonplan can't find settings location:

(process:18244): GLib-GIO-ERROR **: Settings schema 'net.launchpad.wakeonplan' is not installed

P.S. I haven't yet pushed the latest code to the branch because it's highly experimental.

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

From the help:

$ quickly run help

Runs your application. This is the best way to try test it out while you are developing it. It starts up the main project window.

$ quickly run -- values - to pass '-whatever' and 'values' to the executed program. Without that if you use for instance --help, it would be Quickly help and not your program one.

So for instance, I have a program, that I import sys and add the following to the finish_initializing function:

print sys.argv

I then run from the command line:

quickly run -- param1=value1 param2=value2

Which then outputs:

['bin/ui-test', 'param1=value1', 'param2=value2']

share|improve this answer
    
It must've been some bugs in the script itself, thanks :) –  int_ua Jul 5 '12 at 23:57
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.