Adding a OpenVPN/WireGuard profile file with spaces in its filename breaks Gnome Settings
Relevant information
-
GNOME Settings version: 44.3
-
Operating system (distribution): Arch Linux
-
Error message: "G_MESSAGES_DEBUG=all gnome-control-center" did not produce any message while reproducing.
-
Backtrace (if you are experiencing a crash): There is no backtrace, the app is unresponsive.
-
Screenshots:
Steps to reproduce:
- Open GNOME Settings
- Go to "Network" tab
- Click "+" (plus) button in the VPN section, select "Import from file"
- Select a VPN profile (in my case it's a WireGuard .conf profile) from the file browser which contains spaces, for example
finland (1).conf
, though justfinland .conf
(one space afterfinland
) is enough. - Observe the error presented on the screenshot. If you click OK, it does not close the file browser or the error window, it's just stuck like this until you kill the process with
killall gnome-control-center
.
If you follow the same steps and load the same exact file but without spaces in the filename, it will load just fine. Spaces in the filepath also do not seem to have an effect, only the filename is affected.