goodmind / sunflower-fm

Automatically exported from code.google.com/p/sunflower-fm
GNU General Public License v3.0
1 stars 0 forks source link

Add terminal flag to command line parameters. #272

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
like -h -v --help
and in addition maybe --terminal to open sunflower or switch to an existing 
sunflower window and open a terminal tab in ~/ .

Original issue reported on code.google.com by turboos...@gmail.com on 15 Feb 2013 at 12:42

GoogleCodeExporter commented 9 years ago
Already built in, but --terminal is not. You need python-argparse for this.

Original comment by MeanEYE.rcf on 15 Feb 2013 at 4:24

GoogleCodeExporter commented 9 years ago
python-argparse doesn't exist in Ubuntu precise. synaptic shows python-commando 
when searching for argparse but it's the wrong package. python-argvalidate also 
isn't the right package.
http://packages.ubuntu.com/de/precise/python-argparse shows that this package 
existed till oneiric but from precise on is virtual package (I couldn't find it 
at all though).
tried with sunflower -h

Original comment by turboos...@gmail.com on 16 Feb 2013 at 5:42

GoogleCodeExporter commented 9 years ago
How did you install Sunflower?

Original comment by MeanEYE.rcf on 16 Feb 2013 at 5:45

GoogleCodeExporter commented 9 years ago
I installed from deb package (Ubuntu 12.04.2 precise, latest package)

Original comment by turboos...@gmail.com on 16 Feb 2013 at 5:46

GoogleCodeExporter commented 9 years ago
Okay, thanks. I see what's the problem. You no longer need argparse, but the 
issue is, launcher script for Sunflower doesn't pass on arguments.

Wojtek, can you fix this? Ideally we should link /usr/bin/sunflower to original 
.py file and avoid script all together.

Speaking of packages, maybe we should have debian and rpm directories in 
repository instead of generating them with script. And use makefile for 
building packages?

Original comment by MeanEYE.rcf on 16 Feb 2013 at 5:56

GoogleCodeExporter commented 9 years ago
It can't be symlinked since python then searches the rest of files in /usr/bin 
instead of /usr/share/sunflower. So either
 - leave script (passing arguments is easy) or
 - install files to /usr/lib/python2.7/site-packages/
What is better?

You mean pure makefile or automake?

Original comment by wojtekkl...@gmail.com on 16 Feb 2013 at 7:26

GoogleCodeExporter commented 9 years ago
Python search path can be changed easily. In fact application/main.py already 
does that. But we should go easier route this time. Just pass arguments.

Yes, pure makefile. I believe you can put everything there that your 
make_package script does if we have external files. But since you are making 
packages, it's all the same to me. Your call on that one.

Original comment by MeanEYE.rcf on 16 Feb 2013 at 7:42

GoogleCodeExporter commented 9 years ago
OK, next realise will have fixed script. Makefile I'll write next week maybe.

Original comment by wojtekkl...@gmail.com on 17 Feb 2013 at 9:41

GoogleCodeExporter commented 9 years ago
No rush then. Makefile is more of a suggestion. :) I think maintaining separate 
files will be easier instead of one big script that generates them.

Anyway, thanks. Am marking this issue as fixed.

Original comment by MeanEYE.rcf on 17 Feb 2013 at 12:20