support command line arguments
Bug #790301 reported by
Spoilerhead
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
PyShare |
Invalid
|
Wishlist
|
Unassigned |
Bug Description
It would be very cool if PyShare would support command line arguments, too, so it could be used from other applications, too (i.e. in my case thunar and bibble5)
I'm not really into python, but for me the following hack to sendFiles works:
if __name__ == "__main__":
if environ.
files = environ[
else:
#parse command line arguments of no nautilus environment is found
files = sys.argv[1:]
To post a comment you must log in.
Well you can already run first branch of if by calling sendFiles script and else branch by invoking PyShare_GTK.py.
Could you specify what behavior exactly would you expect? (I have some ideas about improving CLI support, but would like to hear your idea).