JohnnyMac

joined 1 year ago
[–] [email protected] 0 points 1 week ago

No, I'm the person that lets them pass because I don't presume to know why they're in such a rush. Maybe pregnant wife or medical emergency. Or maybe just a dick.. don't know. Don't care. I'm not the speed police.

[–] [email protected] 3 points 1 week ago* (last edited 1 week ago)

A lot of times sudo -E will solve these types of issues because it preserves current environments variables. Honestly it might be all that's needed to fix your current issue, because XDG_CONFIG_HOME is probably what the app is looking for, which will get passed with -E without all the extra stuff in my first response.

[–] [email protected] 6 points 1 week ago* (last edited 1 week ago) (3 children)

It's because sudo runs as root, so it's looking for /root/.config You can use -E to keep your current users environment vars, but that doesn't do anything with ~/.config

You can try something like sudo -E HOME="$HOME" XDG_CONFIG_HOME="$XDG_CONFIG_HOME" command_to_run

Or see if you can manually set the config path via args for the command command_to_run --help or man command_to_run then if it does do sudo command_to_run --config_path /home/user/.config for example

Or copy ~/.config to /root (don't simlink because root could screw up permissions). Obviously copying is annoying especially if it changes often

(sudo could mess up the ~/.config permissions also if you do the HOME stuff above. )

[–] [email protected] 32 points 1 month ago (4 children)

I've heard it's because they invaded every country on the planet for their spices and decided to use none of them

view more: next ›