#[SOLVED] Arch Linux Sway trying to get discord to work

45 messages · Page 1 of 1 (latest)

shadow locust
#

Hi there, I installed discord through pacman -S but I get this error when trying to run it through terminal:

[emilpriv@emilarch ~]$ discord
Discord 0.0.44
[1226:0311/143421.714217:ERROR:ozone_platform_x11.cc(239)] Missing X server or $DISPLAY
[1226:0311/143421.714260:ERROR:env.cc(255)] The platform failed to initialize.  Exiting.
Segmentation fault (core dumped)

I'm running Arch Linux Sway

summer remnant
#

you cant run electron apps by default on sway, the same thing will happen with spotify for example

#

you can get over this by using an alternative client or adding electron flags to the .desktop launcher file to make sure it launches with the args that tell electron to support wayland

shadow locust
#

should I just replace wayland with something else?

#

if that's the case

summer remnant
#

sounds pretty drastic, why do you use wayland?

#

could just as easily be i3

shadow locust
#

is it possible to use sway without wayland?

summer remnant
#

nope the point of sway is to replicate i3 but instead of using xorg, it uses Wayland

shadow locust
#

fak, but that means I have to replace all the configurations I made for wofi and waybar with alternatives for i3

summer remnant
#

depends to be honest

#

sway is a drop replacement for i3 and vice versa

#

they support each others configs, but your other gui elements might not

#

consider why you use wayland

#

if you really want it, you should try using xwayland

#

its a backend for xorg applications that uses wayland

shadow locust
#

does xwayland work for sway?

summer remnant
#

i believe so yes

shadow locust
#

oi, any chance you could guide me to get that done

summer remnant
#

no not possible on my end, just google it

shadow locust
#

alrighty, thank you!

neon gale
#

I know how

#

env -u WAYLAND_DISPLAY discord

#

Wait

#

Do you have Xwayland

shadow locust
#

I dont yet, I'm trying to get it now

#

should I not?

shadow locust
#

same error

neon gale
neon gale
shadow locust
#

yea I dont, I'm trying to get it now

#

but I dont see how its done

#

does any of y'all know how to install xwayland?

#

I don't get it

shadow locust
#

alright

#

I got it

#

does anyone know how I can enable the function keys

#

to increase and decrease volume

#

and brightness

#

and all the other ones

abstract mist
#

Oh it’s been mentioned

abstract mist
shadow locust
#

its all fixed, thanks!