#Can't open VS code as root

1 messages · Page 1 of 1 (latest)

neon totem
#

I can not edit or save the edits I make to my dwm.conf

#

can not open it also via sudo code dwm.c

jaunty oar
#

what does it error out as

inland laurel
short needle
#

why is it a problem

valid schooner
#

.s litany

errant geyserBOT
# valid schooner .s litany

Please follow the Standard Litany when asking a question:
What was your environment? What was your operating system, configuration?
What did you do? What did you run or test? Where?
What actually happened? What were the exact results, complete log contents, exact error messages?
What did you expect? What were you aiming to achieve? What result were you looking for?

Vague or superficial questions will yield vague or superficial answers. False information leads to false solutions.

Also see this similar guide on how to ask smart questions.

valid schooner
#

everyone is in the dark here lmfao

neon totem
inland laurel
#

ok

#

well a better solution to running it as sudo would to be to get a polkit authentication agent

neon totem
#

soo sudo pacman -S polkit

inland laurel
#

you need an authentication agent as well

serene mantle
#

another good practice would be to copy that to your home dir somehow like in ~/.config

#

unless you want the same config on multiple users

neon totem
#

If I have it in my home dir I would not have be that complicated to run?

serene mantle
#

I"m actually not sure with dwm, but with i3 I just copied it to ~/.config/i3 and in my .zshenv in home dir I source export XDG_CONFIG_HOME="$HOME/.config"

#

as in I have another dir in .config called i3, and inside it has a file called config so ~/.config/i3/config

#

but then you shouldn't really need root permissions if you can figure that out

short needle
#

maybe you can use sudoedit with vscode as the editor

short needle
short needle
#

like an xsession file that runs dwm wherever you installed it