Guest User

Untitled

a guest
Aug 19th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. // cc main.c `pkg-config --cflags --libs libbamf`
  2.  
  3. #include <stdio.h>
  4. #include <stdlib.h>
  5. #include <libbamf/bamf-matcher.h>
  6.  
  7. int main()
  8. {
  9. g_type_init();
  10. const gchar *deskfile, *nd;
  11. BamfWindow * win = NULL;
  12.  
  13. do {
  14. BamfApplication * app = bamf_matcher_get_active_application(bamf_matcher_get_default());
  15. deskfile = bamf_application_get_desktop_file(app);
  16. g_debug("current file %s",deskfile);
  17. sleep(1);
  18. } while(1);
  19. return 0;
  20. }
Add Comment
Please, Sign In to add comment