mirror of
https://github.com/flatpak/flatpak.git
synced 2026-04-16 04:51:43 -04:00
Reword to make it clearer how (not) to invoke flatpak
This commit is contained in:
committed by
Simon McVittie
parent
11d66b4587
commit
1bdbb80ac5
@@ -3772,7 +3772,7 @@ check_sudo (GError **error)
|
||||
/* SUDO_COMMAND could be a value like `/usr/bin/flatpak run foo` */
|
||||
split_command = g_strsplit (sudo_command_env, " ", 2);
|
||||
if (g_str_has_suffix (split_command[0], "flatpak"))
|
||||
return flatpak_fail_error (error, FLATPAK_ERROR, _("\"flatpak run\" is not intended to be run with `sudo`, use `sudo -i` or `su -l` instead"));
|
||||
return flatpak_fail_error (error, FLATPAK_ERROR, _("\"flatpak run\" is not intended to be run as `sudo flatpak run`, use `sudo -i` or `su -l` instead and invoke \"flatpak run\" from inside the new shell"));
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user