2
* Copyright 2010 Canonical Ltd.
4
* This library is free software; you can redistribute it and/or modify it under
5
* the terms of the GNU General Public License as published by the Free Software
6
* Foundation; either version 3 of the License, or (at your option) any later
9
* This library is distributed in the hope that it will be useful, but WITHOUT
10
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14
* You should have received a copy of the GNU General Public License along with
15
* this program; if not, write to the Free Software Foundation, Inc., 51
16
* Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19
#include <libbamf/bamf-matcher.h>
23
getName(char * deskfile)
28
temp = strrchr(deskfile, '/');
29
return strndup(temp+1, strlen(temp)-9);
37
BamfWindow * win = NULL;
39
BamfApplication * app = bamf_matcher_get_active_application(bamf_matcher_get_default());
40
deskfile = getName((char*)bamf_application_get_desktop_file(app));