Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37740831
en ru br
ALT Linux repos
S:0.2-alt1.qa1
5.0: 0.2-alt0.M50.1
4.1: 0.2-alt0.M41.1
4.0:
+backports:0.2-alt0.M40.1

Group :: Terminals
RPM: keyplex

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: keyplex-0.2-alt-default_terminal.patch
Download


Set uxterm as a default terminal.
Extend help text to meet ALT Linux specific.
--- ./src/keyplex.c
+++ ./src/keyplex.c
@@ -47,7 +47,7 @@ int numindex = 0;
 Window *windows;
 Window *pasteWindows;
 char *keyplexid;
-char *termcmd = "gnome-terminal --disable-factory --class=%s";
+char *termcmd = "uxterm -xrm 'xterm*allowSendEvents: true' -class %s";
 Bool querying = False;
 Bool sendingEvents = False;
 XErrorHandler oldHandler;
@@ -276,12 +276,15 @@ static void usage()
   fprintf (stderr, "string used to find the terminals in X. The %%s should be used as an argument\n");
   fprintf (stderr, "to set either the window class or name\n");
   fprintf (stderr, "Examples:\n");
+  fprintf (stderr, "  %s --command \"xterm -xrm 'xterm*allowSendEvents: true' -class %%s\"\n", program);
   fprintf (stderr, "  %s --command \"gnome-terminal --disable-factory --class=%%s\"\n", program);
-  fprintf (stderr, "  %s --command \"xterm -class %%s\"\n", program);
+  fprintf (stderr, "  %s --command \"uxterm -xrm 'xterm*allowSendEvents: true' \" \\\n", program);
+  fprintf (stderr, "                    \" -bg black -fg green -class %%s\"\n");
   fprintf (stderr, "  %s --command \"aterm -name %%s\"\n", program);
   fprintf (stderr, "\n");
   fprintf (stderr, "Note: xterm (and uxterm) require the resource allowSendEvents to be True.\n");
-  fprintf (stderr, "      Add \"xterm*allowSendEvents: True\" to ~/.Xdefaults to set this.\n");
+  fprintf (stderr, "      Add key \"-xrm 'xterm*allowSendEvents: true'\" to the command line\n");
+  fprintf (stderr, "      or \"xterm*allowSendEvents: True\" to ~/.Xresources to set this permanently.\n");
   fprintf (stderr, "\n");
   exit(1);
 }
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin