summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2011-10-12 17:31:05 -0400
committerJasper St. Pierre <jstpierre@mecheye.net>2011-10-12 17:31:29 -0400
commitb873c61ecc85c1a87c9471046f3d25ecd2446959 (patch)
tree309abb2815a761c858a0beed19e6e4fc01a70176
parent6a63ae0e8a499a47e88bb3bc7c323e11835eb4ea (diff)
downloadlibnotify-b873c61ecc85c1a87c9471046f3d25ecd2446959.tar.gz
notify-send: Add ability to set app name
-rw-r--r--tools/notify-send.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/notify-send.c b/tools/notify-send.c
index 8dec70f..c0b9eeb 100644
--- a/tools/notify-send.c
+++ b/tools/notify-send.c
@@ -125,6 +125,7 @@ main (int argc, char *argv[])
static const char *summary = NULL;
char *body;
static const char *type = NULL;
+ static char *app_name = NULL;
static char *icon_str = NULL;
static char *icons = NULL;
static char **n_text = NULL;
@@ -146,6 +147,8 @@ main (int argc, char *argv[])
N_
("Specifies the timeout in milliseconds at which to expire the "
"notification."), N_("TIME")},
+ {"app-name", 'a', 0, G_OPTION_ARG_STRING, &app_name,
+ N_("Specifies the app name for the icon"), N_("APP_NAME")},
{"icon", 'i', 0, G_OPTION_ARG_FILENAME, &icons,
N_("Specifies an icon filename or stock icon to display."),
N_("ICON[,ICON...]")},
@@ -226,6 +229,7 @@ main (int argc, char *argv[])
notify_notification_set_category (notify, type);
notify_notification_set_urgency (notify, urgency);
notify_notification_set_timeout (notify, expire_timeout);
+ notify_notification_set_app_name (notify, app_name);
g_free (body);