Hello community, here is the log from the commit of package wtype for openSUSE:Factory checked in at 2020-12-01 14:21:53 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/wtype (Old) and /work/SRC/openSUSE:Factory/.wtype.new.5913 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "wtype" Tue Dec 1 14:21:53 2020 rev:2 rq:851773 version:0.3 Changes: -------- --- /work/SRC/openSUSE:Factory/wtype/wtype.changes 2020-11-24 22:13:10.731534434 +0100 +++ /work/SRC/openSUSE:Factory/.wtype.new.5913/wtype.changes 2020-12-01 14:21:59.657541889 +0100 @@ -1,0 +2,7 @@ +Mon Nov 30 08:29:29 UTC 2020 - Michael Vetter <mvet...@suse.com> + +- Update to 0.3: + * Use temporary files instead of shm objects (fix for FreeBSD) + * Add a manpage + +------------------------------------------------------------------- Old: ---- v0.2.tar.gz New: ---- v0.3.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ wtype.spec ++++++ --- /var/tmp/diff_new_pack.bJ5prI/_old 2020-12-01 14:22:00.441542737 +0100 +++ /var/tmp/diff_new_pack.bJ5prI/_new 2020-12-01 14:22:00.445542741 +0100 @@ -17,7 +17,7 @@ Name: wtype -Version: 0.2 +Version: 0.3 Release: 0 Summary: Xdotool type for Wayland License: MIT @@ -47,5 +47,6 @@ %license LICENSE %doc README.md %{_bindir}/wtype +%{_mandir}/man1/wtype.1%{?ext_man} %changelog ++++++ v0.2.tar.gz -> v0.3.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/wtype-0.2/main.c new/wtype-0.3/main.c --- old/wtype-0.2/main.c 2020-10-24 19:57:52.000000000 +0200 +++ new/wtype-0.3/main.c 2020-11-24 13:35:53.000000000 +0100 @@ -408,23 +408,12 @@ static void upload_keymap(struct wtype *wtype) { - const char *filename_format = "/wtype-%d"; - char filename[sizeof(filename_format) + 10]; - int fd = -1; - for (int i = 0; i < 1000; i++) { - snprintf(filename, sizeof(filename), filename_format, i); - fd = shm_open(filename, O_RDWR | O_EXCL | O_CREAT | O_TRUNC, 0660); - if (fd >= 0) { - // We can unlink immediately - wayland eats the file descriptor - // not filename - shm_unlink(filename); - break; - } + char filename[] = "/tmp/wtype-XXXXXX"; + int fd = mkstemp(filename); + if (fd < 0) { + fail("Failed to create the temporary keymap file"); } - if (fd <= 0) { - fail("Failed to open SHM object"); - } - // Note: this is technically undefined, we can't do fdopen on SHM objects + unlink(filename); FILE *f = fdopen(fd, "w"); fprintf(f, "xkb_keymap {\n"); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/wtype-0.2/man/wtype.1 new/wtype-0.3/man/wtype.1 --- old/wtype-0.2/man/wtype.1 1970-01-01 01:00:00.000000000 +0100 +++ new/wtype-0.3/man/wtype.1 2020-11-24 13:35:53.000000000 +0100 @@ -0,0 +1,57 @@ +.\" Manpage for wtype. +.TH wtype 1 "23 November 2020" "0.2" "wtype man page" +.SH NAME +wtype \- xdotool type for Wayland +.SH SYNOPSIS +.B wtype +[TEXT] + +.B wtype +[OPTION_OR_TEXT]... -- [TEXT]... + +.SH DESCRIPTION +.PP +wtype is a Wayland tool that allows you to simulate keyboard input like xdotool type for X11. +This is accomplished via the virtual-keyboard Wayland protocol. + +.SH OPTIONS +Modifier can be one of "shift", "capslock", "ctrl", "logo", "win", "alt", "altgr". +Beware that the modifiers get released automatically once the program terminates. + +Named keys are resolved by libxkbcommon, valid identifiers include "Left" and +"Home". + +.TP +.BR \-M\ \fIMOD\fR +Press modifier MOD. + +.TP +.BR \-m\ \fIMOD\fR +Release modifier MOD. + +.TP +.BR \-P\ \fIKEY\fR +Press key KEY. + +.TP +.BR \-p\ \fIKEY\fR +Release key KEY. + +.TP +.BR \-k\ \fIKEY\fR +Type (press and release) key KEY. + +.TP +.BR \-s\ \fITIME\fR +Sleep for TIME milliseconds before interpreting the following options. This +can be used to perform more complicated modifier sequences. + +.SH LIMITATIONS +To support arbitrary unicode characters, wtype generates a keymap on the fly and submits it to the compositor for distribution. Unfortunately this is broken under Xwayland as X has an upper limit on the amount of defined keycode-keysym pairs. + +.SH BUGS +No known bugs. + +.SH AUTHOR +wtype has been started by Josef Gajdusek. +Man page is written by Michael 'jubalh' Vetter. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/wtype-0.2/meson.build new/wtype-0.3/meson.build --- old/wtype-0.2/meson.build 2020-10-24 19:57:52.000000000 +0200 +++ new/wtype-0.3/meson.build 2020-11-24 13:35:53.000000000 +0100 @@ -38,6 +38,8 @@ subdir('protocol') +install_man('man/wtype.1') + executable( meson.project_name(), src_files, _______________________________________________ openSUSE Commits mailing list -- commit@lists.opensuse.org To unsubscribe, email commit-le...@lists.opensuse.org List Netiquette: https://en.opensuse.org/openSUSE:Mailing_list_netiquette List Archives: https://lists.opensuse.org/archives/list/commit@lists.opensuse.org