1
/* main.c generated by valac 0.22.1, the Vala compiler
2
* generated from main.vala, do not modify */
7
#include <libnotify/notify.h>
9
#include "indicator-sound-service.h"
13
main (int argc, char ** argv) {
15
IndicatorSoundService* service = NULL;
17
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
18
setlocale (LC_ALL, "");
19
bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR);
21
/* Initialize libnotify */
22
notify_init ("indicator-sound");
24
MediaPlayerList * playerlist = NULL;
26
if (g_strcmp0("lightdm", g_get_user_name()) == 0) {
27
playerlist = MEDIA_PLAYER_LIST(media_player_list_greeter_new());
29
playerlist = MEDIA_PLAYER_LIST(media_player_list_mpris_new());
32
service = indicator_sound_service_new (playerlist);
33
result = indicator_sound_service_run (service);
35
g_object_unref(playerlist);
36
g_object_unref(service);