💾 Archived View for gemini.ctrl-c.club › ~phoebos › logs › freenode-kisslinux-2019-12-09.txt captured on 2022-07-17 at 03:26:51.
⬅️ Previous capture (2021-12-17)
-=-=-=-=-=-=-
2019-12-09T10:49:54 #kisslinux <lieuxnoir> konimex: how about `acpid -df > /dev/null 2>&1` 2019-12-09T10:50:10 #kisslinux <lieuxnoir> i don't know 2019-12-09T10:50:47 #kisslinux <lieuxnoir> Maybe I just don't like a `/var/log/acpid.log` getting created. 2019-12-09T10:56:59 #kisslinux <lieuxnoir> dylanaraps: I'm done writing the wiki. I hope you'll like it. C: 2019-12-09T10:57:10 #kisslinux <dylanaraps> I saw, it looks good. :) 2019-12-09T10:58:38 #kisslinux <lieuxnoir> Thanks. :D 2019-12-09T15:39:02 #kisslinux <dylanaraps> https://github.com/dylanaraps/pash/pull/10 2019-12-09T15:39:23 #kisslinux <dylanaraps> Anyone understand the difference between 'wl-copy --clear' and 'wl-copy < /dev/null'? 2019-12-09T15:46:24 #kisslinux <dylanaraps> Oh no: https://github.com/bugaevc/wl-clipboard/blob/master/src/wl-copy.c#L75 2019-12-09T15:46:40 #kisslinux <dylanaraps> > execlp("rm", "rm", "-r", dirname(temp_file), NULL); 2019-12-09T15:48:40 #kisslinux <dylanaraps> > execlp("cat", "cat", NULL); 2019-12-09T15:48:47 #kisslinux <dylanaraps> > execlp("xdg-mime", "xdg-mime", "query", "filetype", file_path, NULL); 2019-12-09T15:49:03 #kisslinux <dylanaraps> > execlp("cat", "cat", self->file_to_copy, NULL); 2019-12-09T15:49:27 #kisslinux <dylanaraps> I wonder why they decided to call utilities instead of using C. 2019-12-09T15:55:09 #kisslinux <dzove855> 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 <dzove855> neither easyer 2019-12-09T15:57:07 #kisslinux <dylanaraps> Which one? '--clear' or '< /dev/null'? 2019-12-09T15:57:19 #kisslinux <dylanaraps> Or the shell stuff in C? 2019-12-09T15:57:26 #kisslinux <dzove855> Shell stuff in C 2019-12-09T15:57:37 #kisslinux <dylanaraps> Yeah 2019-12-09T15:58:17 #kisslinux <dylanaraps> I'm surprised to see a clipboard manager storing things in /tmp as plain-text too. 2019-12-09T15:58:30 #kisslinux <dylanaraps> I'm not sure if xclip/xset do the same or not. 2019-12-09T15:59:34 #kisslinux <dylanaraps> OK, xclip doesn't and I doubt xset does either as they'd use X11 as storage. 2019-12-09T15:59:57 #kisslinux <dzove855> 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 <dzove855> s/clopboard/clipboard 2019-12-09T16:00:38 #kisslinux <E5ten> is wl-clipboard the most commonly used wayland clipboard thing? 2019-12-09T16:00:52 #kisslinux <dylanaraps> Probably. I'll see if others exist. 2019-12-09T16:01:07 #kisslinux <dylanaraps> Also, it doesn't work without a "seat manager". ie logind/consolekit 2019-12-09T16:01:09 #kisslinux <dylanaraps> Sad 2019-12-09T16:01:48 #kisslinux <dylanaraps> I read the source and I still don't understand the difference between '--clear' and '< /dev/null'. 2019-12-09T16:02:12 #kisslinux <E5ten> 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 <E5ten> do I have that right? 2019-12-09T16:03:03 #kisslinux <dylanaraps> Yes 2019-12-09T16:03:38 #kisslinux <dylanaraps> 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 <dylanaraps> It depends on how the arguments are passed to these. 2019-12-09T16:04:21 #kisslinux <dylanaraps> The only reason it needs a temp file is to do mime-type detection. 2019-12-09T16:04:23 #kisslinux <dzove855> <sarcasm>: *You guys have forgotten the systemd-tmpfiles which protect tmpfiles!* </Sarcasm> 2019-12-09T16:04:45 #kisslinux <dylanaraps> I don't see why mime detection is needed but anyway. 2019-12-09T16:04:48 #kisslinux <E5ten> I don't even think that's what systemd-tmpfiles is for? 2019-12-09T16:05:16 #kisslinux <dzove855> E5ten: you can have with systemd-tmpfiles a secured private temporary per unit or process 2019-12-09T16:05:30 #kisslinux <dzove855> So it all depends how does wl-copy works and wayland 2019-12-09T16:06:07 #kisslinux <dzove855> 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 <dylanaraps> I think it uses plain /tmp as there are issues closed about leaking information. 2019-12-09T16:07:09 #kisslinux <E5ten> 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 <dzove855> E5ten: yeaah haha 2019-12-09T16:07:43 #kisslinux <dylanaraps> It already has a systemd requirement with needing logind. 2019-12-09T16:07:55 #kisslinux <dylanaraps> I'm not even sure if it'd accept consolekit. 2019-12-09T16:08:19 #kisslinux <dylanaraps> 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 <E5ten> 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 <dzove855> dylanaraps: well, would be difficult because of the CGroup support 2019-12-09T16:10:12 #kisslinux <dzove855> but it would be funny 2019-12-09T16:13:32 #kisslinux <dylanaraps> Also, it uses 'rm -r' meaning 'rm' may prompt for input when deleting files... 2019-12-09T16:13:39 #kisslinux <dylanaraps> Meaning, files may stay on the system. 2019-12-09T16:14:12 #kisslinux <dylanaraps> > -f Never prompt 2019-12-09T16:14:26 #kisslinux <dylanaraps> Received a reply just now: https://github.com/dylanaraps/pash/pull/10#issuecomment-563310465 2019-12-09T16:15:40 #kisslinux <dylanaraps> > 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 <dylanaraps> > password managers doing things they shouldn't. 2019-12-09T16:15:53 #kisslinux <dylanaraps> ??? 2019-12-09T16:21:09 #kisslinux <dzove855> 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 <E5ten> 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 <E5ten> doesn't seem to use tmp files 2019-12-09T16:22:44 #kisslinux <E5ten> wait 2019-12-09T16:22:54 #kisslinux <E5ten> I'm not sure actually, it might, looking further into it 2019-12-09T16:24:06 #kisslinux <E5ten> ugh dammit it totally does 2019-12-09T16:25:17 #kisslinux <E5ten> at least it doesn't use rm to get rid of them lol 2019-12-09T16:25:45 #kisslinux <dylanaraps> lol... 2019-12-09T16:26:08 #kisslinux <dylanaraps> I asked why "wl-copy < /dev/null" can't be treated the same as '--clear'. 2019-12-09T16:30:41 #kisslinux <dylanaraps> 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 <E5ten> an awful shell script too 2019-12-09T16:32:35 #kisslinux <E5ten> xdg-utils are some of the most hideous scripts I've seen 2019-12-09T16:32:38 #kisslinux <dylanaraps> Yup 2019-12-09T16:32:40 #kisslinux <dylanaraps> Also 2019-12-09T16:32:42 #kisslinux <dylanaraps> > char dirpath[] = "/tmp/wl-copy-buffer-XXXXXX"; 2019-12-09T16:32:49 #kisslinux <dylanaraps> Then 2019-12-09T16:32:51 #kisslinux <dylanaraps> > mkdtemp(dirpath) 2019-12-09T16:33:22 #kisslinux <dylanaraps> It then creates a file in that dir of the exact name of the input file. 2019-12-09T16:33:23 #kisslinux <dylanaraps> > char *name = original_path != NULL ? basename(original_path) : "stdin"; 2019-12-09T16:33:48 #kisslinux <dylanaraps> Which makes the unique directory name useless. 2019-12-09T16:34:41 #kisslinux <E5ten> 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 <dylanaraps> 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 <E5ten> I mean to avoid collision with a theoretical identically named file in /tmp for other reasons 2019-12-09T16:36:44 #kisslinux <dylanaraps> Yeah 2019-12-09T16:43:10 #kisslinux <E5ten> Like what if you were copying from a file in /tmp lol 2019-12-09T16:45:39 #kisslinux <dylanaraps> Ideally you wouldn't use temporary files to begin with. :P 2019-12-09T16:55:59 #kisslinux <dylanaraps> > 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 <dylanaraps> I wonder if this is still the case. lol 2019-12-09T16:56:13 #kisslinux <dylanaraps> (-c is --clear) 2019-12-09T17:04:57 #kisslinux <dylanaraps> > Requesting a selection with a NULL data source means "unset the clipboard" 2019-12-09T17:05:00 #kisslinux <dylanaraps> ... 2019-12-09T17:05:12 #kisslinux <dylanaraps> Literally what '< /dev/null' should do. lol 2019-12-09T20:25:28 #kisslinux <qwer1324950> has anyone got full disk encryption working