Change application id for debug mode
This commit is contained in:
parent
07991e4586
commit
48a16528a8
11
src/main.rs
11
src/main.rs
@ -42,7 +42,12 @@ const ENABLE_EXTERNAL_POPUP: &'static str = "--enable-external-popup";
|
|||||||
fn main() {
|
fn main() {
|
||||||
env_logger::init().expect("Can't initialize env_logger");
|
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");
|
.expect("Failed to initialize GTK application");
|
||||||
|
|
||||||
app.connect_activate(activate);
|
app.connect_activate(activate);
|
||||||
@ -111,8 +116,8 @@ mod tests {
|
|||||||
fn test_external_menu() {
|
fn test_external_menu() {
|
||||||
assert_eq!(true,
|
assert_eq!(true,
|
||||||
external_popup(vec!["neovim-gtk", "--enable-external-popup"]
|
external_popup(vec!["neovim-gtk", "--enable-external-popup"]
|
||||||
.iter()
|
.iter()
|
||||||
.map(|s| s.to_string())));
|
.map(|s| s.to_string())));
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
Loading…
Reference in New Issue
Block a user