summaryrefslogtreecommitdiffstats
path: root/src/inkscape-main.cpp
diff options
context:
space:
mode:
authorMarc Jeanmougin <marc@jeanmougin.fr>2018-12-09 19:04:42 +0000
committerMarc Jeanmougin <marc@jeanmougin.fr>2018-12-09 19:04:42 +0000
commit7bbad129a0c9c9f3a38b178557d68623bef03464 (patch)
tree964e4f6ced0914ea706197645a7ca636ca60376c /src/inkscape-main.cpp
parentfix, test, and document more Inkscape::URI methods (diff)
downloadinkscape-7bbad129a0c9c9f3a38b178557d68623bef03464.tar.gz
inkscape-7bbad129a0c9c9f3a38b178557d68623bef03464.zip
Gtk/Gio templating of main inkscape application class to allow commandline usage when graphic server is not available
Diffstat (limited to 'src/inkscape-main.cpp')
-rw-r--r--src/inkscape-main.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/inkscape-main.cpp b/src/inkscape-main.cpp
index 52d3e7873..e1c0411e0 100644
--- a/src/inkscape-main.cpp
+++ b/src/inkscape-main.cpp
@@ -19,9 +19,11 @@
int main(int argc, char *argv[])
{
- auto application = InkscapeApplication::create();
- return application->run(argc, argv);
+ if(gtk_init_check(NULL, NULL))
+ return (new ConcreteInkscapeApplication<Gtk::Application>())->run(argc, argv);
+ else
+ return (new ConcreteInkscapeApplication<Gio::Application>())->run(argc, argv);
}
/*