Change application id for debug mode

This commit is contained in:
daa 2017-05-14 00:30:34 +03:00
parent 07991e4586
commit 48a16528a8

View File

@ -42,7 +42,12 @@ const ENABLE_EXTERNAL_POPUP: &'static str = "--enable-external-popup";
fn main() {
env_logger::init().expect("Can't initialize env_logger");
let app = gtk::Application::new(Some("org.daa.NeovimGtk"), gio::ApplicationFlags::empty())
let app = if cfg!(debug_assertions) {
gtk::Application::new(Some("org.daa.NeovimGtkDebug"),
gio::ApplicationFlags::empty())
} else {
gtk::Application::new(Some("org.daa.NeovimGtk"), gio::ApplicationFlags::empty())
}
.expect("Failed to initialize GTK application");
app.connect_activate(activate);