Ask Your Question
1

How to start GNOME temporarily with a different GUI language with Wayland?

asked 2018-10-23 13:16:50 -0600

rugk gravatar image

I know how to start a GNOME session in a console tty under Wayland (original source) and also the LANG=en-US trick that usually works in Linux applications.

Now from the previously linked source I tried this command:

LANG=en-US XDG_SESSION_TYPE=wayland dbus-run-session gnome-session

It did not work and returned me some errors ending with:

fusermount: failed to access mountpoint /run/user/1000/gvfs: Permission denied
A connection to the bus can't be made

Running it with my system's configured language did work, however.

My use case is just that I'd like to make screenshots of some GNOME built-in messages/GUI elements itself (that are not part of any program, such as gnome-control-center. To be more useful (for an international reader/viewer) I'd like to get/use the English version of these. Temporarily of course, I am not keen on changing my system's language in the settings back and forth. Usually that way with LANG=en-US it works so smoothly.


This question has been cross-posted on unix.stackexchange.com.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2018-10-23 13:36:57 -0600

johanh gravatar image

updated 2018-10-23 13:37:45 -0600

This command worked for me:

LANG=en_US.UTF8 dbus-run-session -- gnome-shell --display-server --wayland
edit flag offensive delete link more

Comments

Thanks, that totally works. Just note you should probably not start two sessions with your own user account, as it is hard to get out then (I had to kill gnome-shell and login to finally get out, as the "logout" button did not work.). So generally, it is a good idea to add "how to get out" as well. ;)

rugk gravatar imagerugk ( 2019-01-23 09:26:11 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2018-10-23 13:16:50 -0600

Seen: 106 times

Last updated: Oct 23 '18