Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [Desktop Entry]
- NAME=rdp
- Exec=/Xfreerdp.sh
- Terminal=false
- Type=Application
- > #!/bin/bash
- >W=$(xwininfo -root | awk '$1=="Width:" {print $2}')
- >H=$(xwininfo -root | awk '$1=="Height:" {print $2}')
- >
- > OUTPUT=$(zenity --forms --width=$W --height=$H --title="Connexion RDP"
- >
- > --text="Information de connexion"
- > --separator=","
- > --add-entry="Username"
- > --add-password="Password")
- >
- >
- > OUTPUT_RESULTS=$? Username=$(awk -F, '{print $1}' <<<$OUTPUT)
- > Password=$(awk -F, '{print $2}' <<<$OUTPUT)
- >
- > xfreerdp /f /v:IP_server /d:lab.dom.ad /u:$Username /p:$Password
- > /cert-ignore +clipboard
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement