From 8bbf424b50efc013ba0307ea3b0cd21b33bdae50 Mon Sep 17 00:00:00 2001 From: macmpi <16296055+macmpi@users.noreply.github.com> Date: Wed, 6 Mar 2024 16:25:39 +0100 Subject: [PATCH 1/2] add .desktop file --- .gitignore | 1 + src/x11-calc.desktop.linux | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 src/x11-calc.desktop.linux diff --git a/.gitignore b/.gitignore index 0e67525..66b41c3 100644 --- a/.gitignore +++ b/.gitignore @@ -2,5 +2,6 @@ !*.c !*.h !*.in +!*.desktop.* !LICENSE !README.md diff --git a/src/x11-calc.desktop.linux b/src/x11-calc.desktop.linux new file mode 100644 index 0000000..07205ec --- /dev/null +++ b/src/x11-calc.desktop.linux @@ -0,0 +1,13 @@ +[Desktop Entry] +Version=1.0 +Name=RPN Calculator +Comment=An HP calculator emulator +Exec=x11-calc.sh +Type=Application +Icon=x11-calc +Categories=Utility +Actions=Setup + +[Desktop Action Setup] +Name=Set default calculator +Exec=x11-calc.sh --setup From c623d06e1a6effa075d072aad568458fa2ec9ff3 Mon Sep 17 00:00:00 2001 From: mike632t Date: Wed, 6 Mar 2024 19:20:53 +0000 Subject: [PATCH 2/2] Added desktop file --- src/x11-calc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/x11-calc.c b/src/x11-calc.c index b57c812..8dae742 100644 --- a/src/x11-calc.c +++ b/src/x11-calc.c @@ -269,6 +269,7 @@ * allow it!) - MT * - Check that all error codes are defined and define * any that are not - MT + * - Added desktop file - MT * * * To Do - Parse command line in a separate routine. @@ -281,8 +282,8 @@ #define NAME "x11-calc" #define VERSION "0.12" -#define BUILD "0132" -#define DATE "03 Mar 24" +#define BUILD "0133" +#define DATE "04 Mar 24" #define AUTHOR "MT" #define INTERVAL 25 /* Number of ticks to execute before updating the display */