2019-12-09T10:49:54 #kisslinux konimex: how about `acpid -df > /dev/null 2>&1` 2019-12-09T10:50:10 #kisslinux i don't know 2019-12-09T10:50:47 #kisslinux Maybe I just don't like a `/var/log/acpid.log` getting created. 2019-12-09T10:56:59 #kisslinux dylanaraps: I'm done writing the wiki. I hope you'll like it. C: 2019-12-09T10:57:10 #kisslinux I saw, it looks good. :) 2019-12-09T10:58:38 #kisslinux Thanks. :D 2019-12-09T15:39:02 #kisslinux https://github.com/dylanaraps/pash/pull/10 2019-12-09T15:39:23 #kisslinux Anyone understand the difference between 'wl-copy --clear' and 'wl-copy < /dev/null'? 2019-12-09T15:46:24 #kisslinux Oh no: https://github.com/bugaevc/wl-clipboard/blob/master/src/wl-copy.c#L75 2019-12-09T15:46:40 #kisslinux > execlp("rm", "rm", "-r", dirname(temp_file), NULL); 2019-12-09T15:48:40 #kisslinux > execlp("cat", "cat", NULL); 2019-12-09T15:48:47 #kisslinux > execlp("xdg-mime", "xdg-mime", "query", "filetype", file_path, NULL); 2019-12-09T15:49:03 #kisslinux > execlp("cat", "cat", self->file_to_copy, NULL); 2019-12-09T15:49:27 #kisslinux I wonder why they decided to call utilities instead of using C. 2019-12-09T15:55:09 #kisslinux dylanaraps: that reminds me of my old Boss, he was doing the same and the cause was: It's much easyer and "faster". But i was never sure with the faster 2019-12-09T15:55:14 #kisslinux neither easyer 2019-12-09T15:57:07 #kisslinux Which one? '--clear' or '< /dev/null'? 2019-12-09T15:57:19 #kisslinux Or the shell stuff in C? 2019-12-09T15:57:26 #kisslinux Shell stuff in C 2019-12-09T15:57:37 #kisslinux Yeah 2019-12-09T15:58:17 #kisslinux I'm surprised to see a clipboard manager storing things in /tmp as plain-text too. 2019-12-09T15:58:30 #kisslinux I'm not sure if xclip/xset do the same or not. 2019-12-09T15:59:34 #kisslinux OK, xclip doesn't and I doubt xset does either as they'd use X11 as storage. 2019-12-09T15:59:57 #kisslinux i think xclip is using the xorg clopboard, which is splitted normally in Three categorys and stored in memory. 2019-12-09T16:00:26 #kisslinux s/clopboard/clipboard 2019-12-09T16:00:38 #kisslinux is wl-clipboard the most commonly used wayland clipboard thing? 2019-12-09T16:00:52 #kisslinux Probably. I'll see if others exist. 2019-12-09T16:01:07 #kisslinux Also, it doesn't work without a "seat manager". ie logind/consolekit 2019-12-09T16:01:09 #kisslinux Sad 2019-12-09T16:01:48 #kisslinux I read the source and I still don't understand the difference between '--clear' and '< /dev/null'. 2019-12-09T16:02:12 #kisslinux so basically, wayland, in having less stuff defined and less features and stuff, specifically clipboard things in this case, has led to the most popular clipboard utility for wayland to store the copied text in plain text in /tmp, while the 2 popular xorg clipboard utilities don't, and wayland is supposed to be more secure? 2019-12-09T16:02:16 #kisslinux do I have that right? 2019-12-09T16:03:03 #kisslinux Yes 2019-12-09T16:03:38 #kisslinux It also spawns 'rm', 'cat' and 'xdg-mime' to function meaning there's a possibility for things to leak over /proc. 2019-12-09T16:03:50 #kisslinux It depends on how the arguments are passed to these. 2019-12-09T16:04:21 #kisslinux The only reason it needs a temp file is to do mime-type detection. 2019-12-09T16:04:23 #kisslinux : *You guys have forgotten the systemd-tmpfiles which protect tmpfiles!* 2019-12-09T16:04:45 #kisslinux I don't see why mime detection is needed but anyway. 2019-12-09T16:04:48 #kisslinux I don't even think that's what systemd-tmpfiles is for? 2019-12-09T16:05:16 #kisslinux E5ten: you can have with systemd-tmpfiles a secured private temporary per unit or process 2019-12-09T16:05:30 #kisslinux So it all depends how does wl-copy works and wayland 2019-12-09T16:06:07 #kisslinux if it is a per user process (which normally it is) then it will be "secured) with a mode like "700" but it doesn't prevent at all 2019-12-09T16:06:16 #kisslinux I think it uses plain /tmp as there are issues closed about leaking information. 2019-12-09T16:07:09 #kisslinux and it's not like it'd be better software if it achieved security on those files by a systemd requirement lol 2019-12-09T16:07:23 #kisslinux E5ten: yeaah haha 2019-12-09T16:07:43 #kisslinux It already has a systemd requirement with needing logind. 2019-12-09T16:07:55 #kisslinux I'm not even sure if it'd accept consolekit. 2019-12-09T16:08:19 #kisslinux Someone having to fork the project and rip it out of the systemd tree (elogind) doesn't count. :P 2019-12-09T16:08:45 #kisslinux for the very barest minimum level of this tmpfile thing not being garbage it could use $TMPDIR and fall back to /tmp so the user would have any ability at all to force it to put the tmpfiles somewhere else lol 2019-12-09T16:09:28 #kisslinux dylanaraps: well, would be difficult because of the CGroup support 2019-12-09T16:10:12 #kisslinux but it would be funny 2019-12-09T16:13:32 #kisslinux Also, it uses 'rm -r' meaning 'rm' may prompt for input when deleting files... 2019-12-09T16:13:39 #kisslinux Meaning, files may stay on the system. 2019-12-09T16:14:12 #kisslinux > -f Never prompt 2019-12-09T16:14:26 #kisslinux Received a reply just now: https://github.com/dylanaraps/pash/pull/10#issuecomment-563310465 2019-12-09T16:15:40 #kisslinux > Well it does work, as in after doing wl-copy < /dev/null the password is gone from the clipboard, but it doesn't quite clear the clipboard in the way clipboard is supposed to be cleared, which will manifest itself in the little things like menus not getting disabled and password managers doing things they shouldn't. 2019-12-09T16:15:51 #kisslinux > password managers doing things they shouldn't. 2019-12-09T16:15:53 #kisslinux ??? 2019-12-09T16:21:09 #kisslinux Well the difference doesn't really exist, the only problem is the way how they detect if something is in the clipboard or not.. I don't understand how they can say that something is in the clipboard when the byte==0 (empty tring) which is pretty impossible to copy.. Just seems really not well developped 2019-12-09T16:22:05 #kisslinux aside from the rust, it seems wayland users should probably move to wl-clipboard-rs honestly, it's a rust lib but it has 3 commands as well based on that lib, wl_copy, wl_paste, and wl_clip which is like xclip for wayland according to the README 2019-12-09T16:22:11 #kisslinux doesn't seem to use tmp files 2019-12-09T16:22:44 #kisslinux wait 2019-12-09T16:22:54 #kisslinux I'm not sure actually, it might, looking further into it 2019-12-09T16:24:06 #kisslinux ugh dammit it totally does 2019-12-09T16:25:17 #kisslinux at least it doesn't use rm to get rid of them lol 2019-12-09T16:25:45 #kisslinux lol... 2019-12-09T16:26:08 #kisslinux I asked why "wl-copy < /dev/null" can't be treated the same as '--clear'. 2019-12-09T16:30:41 #kisslinux It calls a shell script for mime information... https://cgit.freedesktop.org/xdg/xdg-utils/tree/scripts/xdg-mime.in 2019-12-09T16:32:23 #kisslinux an awful shell script too 2019-12-09T16:32:35 #kisslinux xdg-utils are some of the most hideous scripts I've seen 2019-12-09T16:32:38 #kisslinux Yup 2019-12-09T16:32:40 #kisslinux Also 2019-12-09T16:32:42 #kisslinux > char dirpath[] = "/tmp/wl-copy-buffer-XXXXXX"; 2019-12-09T16:32:49 #kisslinux Then 2019-12-09T16:32:51 #kisslinux > mkdtemp(dirpath) 2019-12-09T16:33:22 #kisslinux It then creates a file in that dir of the exact name of the input file. 2019-12-09T16:33:23 #kisslinux > char *name = original_path != NULL ? basename(original_path) : "stdin"; 2019-12-09T16:33:48 #kisslinux Which makes the unique directory name useless. 2019-12-09T16:34:41 #kisslinux unless the unique dir name is just to avoid collisions and not to obfuscate the filename in which case it is serving its purpose 2019-12-09T16:35:30 #kisslinux It doesn't have history so there'd be no collisions unless it is leaving things in /tmp (which it shouldn't). 2019-12-09T16:35:56 #kisslinux I mean to avoid collision with a theoretical identically named file in /tmp for other reasons 2019-12-09T16:36:44 #kisslinux Yeah 2019-12-09T16:43:10 #kisslinux Like what if you were copying from a file in /tmp lol 2019-12-09T16:45:39 #kisslinux Ideally you wouldn't use temporary files to begin with. :P 2019-12-09T16:55:59 #kisslinux > BTW, wl-copy -c does not actually send set_selection(NULL), because that crashes Mutter, and they're not as eager to fix it. Instead, I just claim the selection and then exit. 2019-12-09T16:56:08 #kisslinux I wonder if this is still the case. lol 2019-12-09T16:56:13 #kisslinux (-c is --clear) 2019-12-09T17:04:57 #kisslinux > Requesting a selection with a NULL data source means "unset the clipboard" 2019-12-09T17:05:00 #kisslinux ... 2019-12-09T17:05:12 #kisslinux Literally what '< /dev/null' should do. lol 2019-12-09T20:25:28 #kisslinux has anyone got full disk encryption working gemini://gemini.ctrl-c.club/~phoebos/logs/freenode-kisslinux-2019-12-09.txt

-- Leo's gemini proxy

-- Connecting to gemini.ctrl-c.club:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/plain; charset=utf-8

-- Response ended

-- Page fetched on Sun Jun 2 12:20:38 2024