Browse Source

Added launcher

Martijn Braam 1 year ago
parent
commit
4be3e43b3a
  1. 2
      main.c
  2. 5
      meson.build
  3. 7
      org.postmarketos.Megapixels.desktop

2
main.c

@ -837,7 +837,7 @@ main(int argc, char *argv[])
gtk_init(&argc, &argv);
g_object_set(gtk_settings_get_default(), "gtk-application-prefer-dark-theme", TRUE, NULL);
GtkBuilder *builder = gtk_builder_new();
char *glade_file = "/usr/share/camera/ui/camera.glade";
char *glade_file = "/usr/share/megapixels/ui/camera.glade";
if (access("camera.glade", F_OK) != -1) {
glade_file = "camera.glade";
}

5
meson.build

@ -3,4 +3,7 @@ gtkdep = dependency('gtk+-3.0')
executable('megapixels', 'main.c', 'ini.c', 'bayer.c', dependencies : gtkdep, install : true)
install_data(['camera.glade', 'camera.css'],
install_dir : get_option('datadir') / 'camera/ui')
install_dir : get_option('datadir') / 'megapixels/ui')
install_data(['org.postmarketos.Megapixels.desktop'],
install_dir : get_option('datadir') / 'applications')

7
org.postmarketos.Megapixels.desktop

@ -0,0 +1,7 @@
[Desktop Entry]
Name=Megapixels
Exec=megapixels /etc/megapixels.ini
Terminal=false
Type=Application
Categories=GTK;
Icon=org.postmarketos.Megapixels
Loading…
Cancel
Save