improve description of password prompting
Since the user does not know whether it will run su or sudo, indicate whether the password prompt will be for root or the user's password, when possible. I assume that programs like gksu that can prompt for either depending on system setup will make clear in their prompt what they're asking for.
This commit is contained in:
parent
10e4d93212
commit
e92f2d1080
4 changed files with 70 additions and 22 deletions
|
@ -22,6 +22,7 @@ import Utility.Verifiable
|
|||
#endif
|
||||
import Utility.UserInfo
|
||||
import Utility.Tor
|
||||
import Utility.Su
|
||||
import Assistant.WebApp.Pairing
|
||||
import Assistant.Alert
|
||||
import qualified Utility.MagicWormhole as Wormhole
|
||||
|
@ -53,7 +54,8 @@ getStartWormholePairSelfR = startWormholePairR PairingWithSelf
|
|||
|
||||
startWormholePairR :: PairingWith -> Handler Html
|
||||
startWormholePairR pairingwith = whenTorInstalled $ whenWormholeInstalled $
|
||||
pairPage $
|
||||
pairPage $ do
|
||||
sucommand <- liftIO $ mkSuCommand "git-annex" [Param "enable-tor"]
|
||||
$(widgetFile "configurators/pairing/wormhole/start")
|
||||
|
||||
getPrepareWormholePairR :: PairingWith -> Handler Html
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue