Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // cc main.c `pkg-config --cflags --libs libbamf`
- #include <stdio.h>
- #include <stdlib.h>
- #include <libbamf/bamf-matcher.h>
- int main()
- {
- g_type_init();
- const gchar *deskfile, *nd;
- BamfWindow * win = NULL;
- do {
- BamfApplication * app = bamf_matcher_get_active_application(bamf_matcher_get_default());
- deskfile = bamf_application_get_desktop_file(app);
- g_debug("current file %s",deskfile);
- sleep(1);
- } while(1);
- return 0;
- }
Add Comment
Please, Sign In to add comment