2
/* PlotDrop is free software, released under the GNU General Public License
3
* See the COPYING file for licensing details.
5
* Copyright 2005 John Spray
8
#include <libgnomevfs/gnome-vfs.h>
15
int main(int argc, char **argv)
18
gtk_init (&argc,&argv);
22
gchar *ver = gnuplot_get_version ();
24
fprintf (stdout, "Found gnuplot version '%s'\n", ver);
26
droplist_no_gnuplot ();
31
gchar *pwd = getcwd (NULL, 0); // g_get_current_dir?
33
for (int i = 1; i < argc; ++i) {
34
if (argv[i][0] == '/'/*g_path_is_absolute (argv[i])*/) {
35
g_message ("filename absolute '%s'", argv[i]);
36
droplist_add_file (argv[i]);
38
gchar *tmp = g_build_filename (pwd, argv[i], NULL);
39
g_message ("built filename '%s'", tmp);
40
droplist_add_file (tmp);