diff options
| author | me_desk <me_desk@fb96df88-216d-11de-830c-f3023f12d8ac> | 2012-08-19 22:13:29 +0000 |
|---|---|---|
| committer | me_desk <me_desk@fb96df88-216d-11de-830c-f3023f12d8ac> | 2012-08-19 22:13:29 +0000 |
| commit | b26ca8ad6bd2ec3c04c3eb38176227c90224e80a (patch) | |
| tree | dbaeb62be39c9567a180037163c159ad99885ec7 | |
| parent | 45646fecc1af22471943422291a1a3e69f43e4e1 (diff) | |
| download | pica-pica-b26ca8ad6bd2ec3c04c3eb38176227c90224e80a.tar.gz pica-pica-b26ca8ad6bd2ec3c04c3eb38176227c90224e80a.zip | |
desktop menu item for pica-client
git-svn-id: svn://localhost/project_picapica/trunk@174 fb96df88-216d-11de-830c-f3023f12d8ac
| -rw-r--r-- | Makefile.am | 22 | ||||
| -rw-r--r-- | configure.ac | 7 | ||||
| -rw-r--r-- | pica-client/pica-client.desktop | 16 |
3 files changed, 45 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index 08a0f05..2c7fd3a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -133,5 +133,27 @@ dist_pkgpicaclient_DATA = CA.pem pica-client/picapica-icon-fly.png pica-client/p #$(filter moc_%.cpp,$(pica_client_SOURCES)) CLEANFILES += moc_*.cpp ui_*.h +EXTRA_DIST += pica-client/pica-client.desktop + +if XDG_UTILS + +pica-client-install-icon: pica-client/picapica-icon-sit.png + xdg-icon-resource install --size 32 $< pica-client + +pica-client-install-menuitem: pica-client/pica-client.desktop + xdg-desktop-menu install $< + +install-data-hook: pica-client-install-icon pica-client-install-menuitem + +pica-client-uninstall-icon: + xdg-icon-resource uninstall --size 32 pica-client + +pica-client-uninstall-menuitem: + xdg-desktop-menu uninstall pica-client.desktop + +uninstall-hook: pica-client-uninstall-menuitem pica-client-uninstall-icon + +endif + endif ##################################### diff --git a/configure.ac b/configure.ac index 228180b..6eb5414 100644 --- a/configure.ac +++ b/configure.ac @@ -49,6 +49,7 @@ AC_CHECK_PROG([SQLITE3], [sqlite3], [yes], [no]) AS_IF([test "x$SQLITE3" != xyes], [ AC_MSG_ERROR(["sqlite3 program not found"])]) ]) + #pica-client tests AS_IF([test "x$PICA_CLIENT_ENABLED" = "xyes"],[ #AC_PROG_CXX @@ -60,8 +61,14 @@ AC_CHECK_PROG([MOC], [moc], [yes], [no]) #fail if not found ... AS_IF([test "x$UIC" != xyes],[AC_MSG_ERROR(["uic program not found. Please install Qt development package"])]) AS_IF([test "x$MOC" != xyes],[AC_MSG_ERROR(["moc program not found. Please install Qt development package"])]) + +#check for xdg-utils +AC_CHECK_PROG([XDG_DESKTOP_MENU], [xdg-desktop-menu], [yes], [no]) +AS_IF([test "x$XDG_DESKTOP_MENU" != xyes],[AC_MSG_WARN(["Looks like xdg-utils are not installed. Desktop menu item installation disabled"])]) ]) +AM_CONDITIONAL([XDG_UTILS], [test "x$XDG_DESKTOP_MENU" = "xyes"]) + # Checks for header files. AC_CHECK_HEADERS([arpa/inet.h limits.h netdb.h netinet/in.h stdlib.h string.h sys/ioctl.h sys/socket.h sys/time.h unistd.h]) diff --git a/pica-client/pica-client.desktop b/pica-client/pica-client.desktop new file mode 100644 index 0000000..c55e911 --- /dev/null +++ b/pica-client/pica-client.desktop @@ -0,0 +1,16 @@ +[Desktop Entry] +Name=Pica Pica Messenger +Name[ru]=Клиент обмена мгновенными сообщениями Pica Pica + +GenericName=Internet Messenger +GenericName[ru]=Клиент обмена мгновенными сообщениями + +Comment=Distributed secure instant messaging with strong encryption +Comment[ru]=Переписка мгновенными сообщениями в криптографически защищенной распределенной системе. + +Exec=pica-client +Icon=pica-client + +Terminal=false +Type=Application +Categories=Network;InstantMessaging; |
