* [PR PATCH] New package: ydotool-0.1.8
@ 2020-10-04 15:45 petrvelicka
2020-10-04 19:28 ` dashezup
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: petrvelicka @ 2020-10-04 15:45 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 319 bytes --]
There is a new pull request by petrvelicka against master on the void-packages repository
https://github.com/petrvelicka/void-packages ydotool
https://github.com/void-linux/void-packages/pull/25341
New package: ydotool-0.1.8
A patch file from https://github.com/void-linux/void-packages/pull/25341.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-ydotool-25341.patch --]
[-- Type: text/x-diff, Size: 1430 bytes --]
From 8da69119de8aa40926bb3c4dfffcd0cdd57a4909 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20Veli=C4=8Dka?= <petrvelicka@tuta.io>
Date: Sun, 4 Oct 2020 17:44:37 +0200
Subject: [PATCH] New package: ydotool-0.1.8
---
srcpkgs/ydotool/files/ydotoold/run | 2 ++
srcpkgs/ydotool/template | 16 ++++++++++++++++
2 files changed, 18 insertions(+)
create mode 100755 srcpkgs/ydotool/files/ydotoold/run
create mode 100644 srcpkgs/ydotool/template
diff --git a/srcpkgs/ydotool/files/ydotoold/run b/srcpkgs/ydotool/files/ydotoold/run
new file mode 100755
index 00000000000..23130244d62
--- /dev/null
+++ b/srcpkgs/ydotool/files/ydotoold/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec /usr/bin/ydotoold
diff --git a/srcpkgs/ydotool/template b/srcpkgs/ydotool/template
new file mode 100644
index 00000000000..de34da9e66c
--- /dev/null
+++ b/srcpkgs/ydotool/template
@@ -0,0 +1,16 @@
+# Template file for 'ydotool'
+pkgname=ydotool
+version=0.1.8
+revision=1
+build_style=cmake
+makedepends="libuInputPlus-devel libevdevPlus-devel boost-devel"
+short_desc="Generic Linux command-line automation tool (no X!)"
+maintainer="Petr Velička <petrvelicka@tuta.io>"
+license="MIT"
+homepage="https://github.com/ReimuNotMoe/ydotool"
+distfiles="https://github.com/ReimuNotMoe/${pkgname}/archive/v${version}.tar.gz"
+checksum=6ebc4ede0a11aa7ced6b52637a4a59cc1528b4c5ed54478d38f0248a40b40a07
+post_install() {
+ vlicense LICENSE
+ vsv ydotoold
+}
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: New package: ydotool-0.1.8
2020-10-04 15:45 [PR PATCH] New package: ydotool-0.1.8 petrvelicka
@ 2020-10-04 19:28 ` dashezup
2021-03-30 18:56 ` lelgenio
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: dashezup @ 2020-10-04 19:28 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1947 bytes --]
New comment by dashezup on void-packages repository
https://github.com/void-linux/void-packages/pull/25341#issuecomment-703303848
Comment:
1. `/dev/input`
If I recall correctly, ydotool need to access /dev/uinput to work.
normal user can't access `/dev/uinput`, so you need to run ydotool with root, or add your user to a group and then add udev rules to allow the group to access it
https://github.com/ReimuNotMoe/ydotool/issues/25#issuecomment-535842993
2. `/tmp/.ydotool_socket`
In this case, ydotoold is run by the service (with root), it creates /tmp/.ydotool_socket` with permission 600 (in this case, only the user root can access to it)
So even if you have that udev rules and added the user to that group, another condition to meet to be able to use ydotool with normal user is **having ydotoold and ydotool run with the same user**.
I mentioned it here: https://github.com/ReimuNotMoe/ydotool/issues/73
Basically if you want to use ydotool directly, you must run it with root. Do you use ydotool by always run it with root user or sudo ? I wonder how do people use it, it's barely usable/useful to me if I need to run it with sudo.
If we want to solve this on our side, we can include the udev rules in this package, notice user to add himself to the specific group (maybe we should use `input` group?). If the user want to use ydotoold as service, then he need to change the uid/gid which runs ydotoold in the runit service.
> exec chpst -u root:input /usr/bin/ydotoold
you can add ", works on Wayland" to short description, so people can search it with keyword "wayland".
You can check [my template](https://ezup.dev/git/void-packages/files.html) (search srcpkgs/ydotool there)
```
srcpkgs/ydotool/INSTALL.msg
srcpkgs/ydotool/files/80-uinput.rules
srcpkgs/ydotool/files/ydotoold/log/run (log is not necessary and idk much about it)
srcpkgs/ydotool/files/ydotoold/run
srcpkgs/ydotool/template
```
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: New package: ydotool-0.1.8
2020-10-04 15:45 [PR PATCH] New package: ydotool-0.1.8 petrvelicka
2020-10-04 19:28 ` dashezup
@ 2021-03-30 18:56 ` lelgenio
2021-07-21 3:47 ` ericonr
2021-07-21 3:47 ` [PR PATCH] [Closed]: " ericonr
3 siblings, 0 replies; 5+ messages in thread
From: lelgenio @ 2021-03-30 18:56 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 290 bytes --]
New comment by lelgenio on void-packages repository
https://github.com/void-linux/void-packages/pull/25341#issuecomment-810499399
Comment:
For anyone interested, it may be better to use wtype.
If using sway, `man 5 sway-input` has options for moving the cursor and pressing buttons.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: New package: ydotool-0.1.8
2020-10-04 15:45 [PR PATCH] New package: ydotool-0.1.8 petrvelicka
2020-10-04 19:28 ` dashezup
2021-03-30 18:56 ` lelgenio
@ 2021-07-21 3:47 ` ericonr
2021-07-21 3:47 ` [PR PATCH] [Closed]: " ericonr
3 siblings, 0 replies; 5+ messages in thread
From: ericonr @ 2021-07-21 3:47 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 161 bytes --]
New comment by ericonr on void-packages repository
https://github.com/void-linux/void-packages/pull/25341#issuecomment-883864248
Comment:
Superseded by #31237
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PR PATCH] [Closed]: New package: ydotool-0.1.8
2020-10-04 15:45 [PR PATCH] New package: ydotool-0.1.8 petrvelicka
` (2 preceding siblings ...)
2021-07-21 3:47 ` ericonr
@ 2021-07-21 3:47 ` ericonr
3 siblings, 0 replies; 5+ messages in thread
From: ericonr @ 2021-07-21 3:47 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 160 bytes --]
There's a closed pull request on the void-packages repository
New package: ydotool-0.1.8
https://github.com/void-linux/void-packages/pull/25341
Description:
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2021-07-21 3:47 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-04 15:45 [PR PATCH] New package: ydotool-0.1.8 petrvelicka
2020-10-04 19:28 ` dashezup
2021-03-30 18:56 ` lelgenio
2021-07-21 3:47 ` ericonr
2021-07-21 3:47 ` [PR PATCH] [Closed]: " ericonr
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).