!BNzCLICNIgvxBJqcKM:nixos.dev

nixos.dev meta discussions

51 Members
Make sure your GitHub Organisation membership is public as otherwise the login will not work.7 Servers

Load older messages


SenderMessageTime
18 Jul 2021
@evils:nixos.devevilshi, thanks for setting this up19:50:07
@evils:nixos.devevils(i'm somewhat new to matrix, only using it because the nix community moved here) any suggestions on what to do with my matrix.org account?19:51:39
@andi:kack.itandi- evils: There is a migration script that Mic92 used to transfer channel memberships and maybe DMs to the new account. Other than that just stop using it. 20:18:29
@evils:nixos.devevilsmostly i'm wondering about the slim chance someone may try to contact me there20:22:30
@evils:nixos.devevilsanother thing i'm not clear on how do i log in on not-20:25:39
@evils:nixos.devevils * another thing i'm not clear on how do i log in on not-element-web since authentication for this account is handled via github?20:26:00
@andi:kack.itandi-Most of the Android applications and even weechat-matrix support SSO login20:26:40
@andi:kack.itandi-it is a well specced login mechansim.20:26:45
@evils:nixos.devevilsi guess i'll find out :)20:27:03
@evils:nixos.devevilsah, it opens a web page in by browser to authenticate20:32:40
@evils:nixos.devevilsthat mechanism is broken as element-desktop on sway on nixos can't open links on wayland native firefox without modification of the package20:33:19
@evils:nixos.devevilsand they don't give you a link you can copy-paste to firefox -_-20:33:43
@evils:nixos.devevils * and they don't give you a link you can copy-paste into firefox -_-20:34:07
@andi:kack.itandi-wait, element-desktop links directly to firefox instead of using xdg-open?20:34:11
@mic92:nixos.devMic92They can20:34:19
@mic92:nixos.devMic92Just set a fixed port20:34:32
@mic92:nixos.devMic92Than it just prints the link20:34:46
@andi:kack.itandi-I realized that element-desktop would always try to open a new firefox window but I didn't debug this any further. Would be great to get that fixed.20:35:14
@evils:nixos.devevils
In reply to @mic92:nixos.dev
Just set a fixed port
can you clarify this suggestion?
20:35:56
@mic92:nixos.devMic92Oh you were talking about element desktop20:35:56
@mic92:nixos.devMic92I thought you meant weechat-matrix20:36:19
@evils:nixos.devevilsah20:36:32
@andi:kack.itandi-I think he tought you were using weechat-matrix20:37:37
@mic92:nixos.devMic92Never tried the electron app. I just have a pinned tab in Firefox20:37:48
@andi:kack.itandi-

Regarding opening the wrong firefox. It does this on my system but firefox isn't happy:

[pid 67440] execve("/run/wrappers/bin/xdg-open", ["xdg-open", "http://matrix.org/"], 0x1be9541f8000 /* 71 vars */) = -1 ENOENT (No such file or directory)
[pid 67440] execve("/home/andi/.nix-profile/bin/xdg-open", ["xdg-open", "http://matrix.org/"], 0x1be9541f8000 /* 71 vars */) = -1 ENOENT (No such file or directory)
[pid 67440] execve("/etc/profiles/per-user/andi/bin/xdg-open", ["xdg-open", "http://matrix.org/"], 0x1be9541f8000 /* 71 vars */) = -1 ENOENT (No such file or directory)
[pid 67440] execve("/nix/var/nix/profiles/default/bin/xdg-open", ["xdg-open", "http://matrix.org/"], 0x1be9541f8000 /* 71 vars */) = -1 ENOENT (No such file or directory)
[pid 67440] execve("/run/current-system/sw/bin/xdg-open", ["xdg-open", "http://matrix.org/"], 0x1be9541f8000 /* 71 vars */) = 0
strace: Process 67442 attached
[pid 67442] execve("/run/current-system/sw/bin/gio", ["gio", "help", "open"], 0x1328008 /* 72 vars */) = 0
[pid 67442] +++ exited with 0 +++
[pid 67440] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=67442, si_uid=1000, si_status=0, si_utime=0, si_stime=0} ---
strace: Process 67443 attached
[pid 67443] execve("/run/current-system/sw/bin/gio", ["gio", "open", "http://matrix.org/"], 0x1328008 /* 72 vars */) = 0
strace: Process 67444 attached
strace: Process 67445 attached
strace: Process 67446 attached
strace: Process 67449 attached
strace: Process 67450 attached
[pid 67449] +++ exited with 0 +++
[pid 67443] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=67449, si_uid=1000, si_status=0, si_utime=0, si_stime=0} ---
[pid 67450] execve("/bin/sh", ["/bin/sh", "-e", "-u", "-c", "export GIO_LAUNCHED_DESKTOP_FILE"..., "sh", "firefox", "http://matrix.org/"], 0x1bc2400 /* 72 vars */) = 0
strace: Process 67451 attached
[pid 67446] +++ exited with 0 +++
[pid 67445] +++ exited with 0 +++
[pid 67451] +++ exited with 0 +++
[pid 67444] +++ exited with 0 +++
[pid 67443] +++ exited with 0 +++
[pid 67440] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=67443, si_uid=1000, si_status=0, si_utime=0, si_stime=2} ---
[pid 67440] +++ exited with 0 +++
[pid  5859] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=67440, si_uid=1000, si_status=0, si_utime=0, si_stime=1} ---
[pid 67441] +++ exited with 0 +++
[pid 67450] execve("/run/current-system/sw/bin/firefox", ["firefox", "http://matrix.org/"], 0x109b008 /* 71 vars */) = 0
20:38:10
@evils:nixos.devevils
In reply to @andi:kack.it
I realized that element-desktop would always try to open a new firefox window but I didn't debug this any further. Would be great to get that fixed.
while it's possible to fix at the nix package level
https://github.com/NixOS/nixpkgs/pull/124703
i think this is an issue specific to element-desktop, or at least, they're the only ones not doing something right?
and they don't seem to have an issue tracker
or if they do, they didn't bother directing people to it on the github repo
20:39:05
@andi:kack.itandi- If you invoke xdg-open https://nixos.org it just works. It might be due to electron being not wayland native? 20:40:15
@evils:nixos.devevilsopening links from mattermost-desktop works here, and i think that also uses electron20:40:46
@andi:kack.itandi-The same electron or some patchelfed stuff?20:41:42
@evils:nixos.devevilspatchelfed20:42:31

There are no newer messages yet.


Back to Room ListRoom Version: 6