From fb31765cbe33890f325a87015507364156741321 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 19:59:44 +0200 Subject: Adding upstream version 42.0. Signed-off-by: Daniel Baumann --- src/defaulttable.h | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 src/defaulttable.h (limited to 'src/defaulttable.h') diff --git a/src/defaulttable.h b/src/defaulttable.h new file mode 100644 index 0000000..9328212 --- /dev/null +++ b/src/defaulttable.h @@ -0,0 +1,53 @@ +/* -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +#ifndef _GSM_DEFAULT_TABLE_H_ +#define _GSM_DEFAULT_TABLE_H_ + +#include +#include +#include + +/* This file contains prettynames and icons for well-known applications, that by default has no .desktop entry */ + +struct PrettyTableItem +{ + Glib::RefPtr command; + std::string icon; + +PrettyTableItem(const std::string& a_command, const std::string& a_icon) +: command(Glib::Regex::create("^(" + a_command + ")$")), + icon(a_icon) + { } +}; + +#define ITEM PrettyTableItem + +static const PrettyTableItem default_table[] = { + /* GNOME services */ + ITEM(".*applet(-?2)?|gnome-panel", "gnome-panel"), + ITEM("evolution.*", "emblem-mail"), + ITEM("gconfd-2|dconf-service", "preferences-desktop"), + ITEM("metacity|gnome-shell", "gnome-window-manager"), + ITEM("vino.*", "gnome-remote-desktop"), + /* Other processes */ + ITEM("(ba|z|tc|c|k)?sh", "utilities-terminal"), + ITEM("(k|sys|u)logd|logger", "internet-news-reader"), + ITEM("X(org)?", "display"), + ITEM("apache2?|httpd|lighttpd", "internet-web-browser"), + ITEM("atd|cron|CRON|ntpd", "date"), + ITEM("cupsd|lpd?", "printer"), + ITEM("cvsd|mtn|git|svn", "file-manager"), + ITEM("emacs(server|\\d+)?", "gnome-emacs"), + ITEM("famd|gam_server", "file-manager"), + ITEM("getty", "input-keyboard"), + ITEM("gdb|((gcc|g\\+\\+)(-.*)?)|ar|ld|make", "applications-development"), + ITEM("sendmail|exim\\d?", "internet-mail"), + ITEM("squid", "proxy"), + ITEM("ssh(d|-agent)", "ssh-askpass-gnome"), + ITEM("top|vmstat", "system-monitor"), + ITEM("vim?", "vim"), + ITEM("x?inetd", "internet-web-browser") +}; + +#undef ITEM + +#endif /* _GSM_DEFAULT_TABLE_H_ */ -- cgit v1.2.3