diff --git a/src/juci.cc b/src/juci.cc index 250afab..3c52331 100644 --- a/src/juci.cc +++ b/src/juci.cc @@ -32,7 +32,7 @@ int Application::on_command_line(const Glib::RefPtr files.emplace_back(new_p); } else - Terminal::get().print("Error: folder path "+parent_p.string()+" does not exist.\n", true); + errors.emplace_back("Error: folder path "+parent_p.string()+" does not exist.\n"); } } } @@ -66,8 +66,12 @@ void Application::on_activate() { another_juci_app.detach(); } } + for(auto &file: files) Window::get().notebook.open(file); + + for(auto &error: errors) + Terminal::get().print(error, true); } void Application::on_startup() { diff --git a/src/juci.h b/src/juci.h index a957b87..81682f2 100644 --- a/src/juci.h +++ b/src/juci.h @@ -13,6 +13,7 @@ public: private: std::vector directories; std::vector files; + std::vector errors; }; #endif // JUCI_JUCI_H_