Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
c2d627d4
Commit
c2d627d4
authored
Nov 17, 2005
by
Russ Fish
Browse files
Use the installed rdesktop program if it's there.
parent
3ebab1e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
www/rdp-mime.pl
View file @
c2d627d4
...
...
@@ -97,10 +97,21 @@ if (!defined($hostname)) {
# But once an rdesktop is started up, its display resolution is fixed. If you make it
# smaller than the previous one, it will push your windows around to fit.
#
my
$rd
=
'
cd ~fish/misc/rdesktop/rdesktop-1.3.1; ./rdesktop -K -g 1280x1024
';
my
$rdir
=
"
/usr/local/share/rdesktop
";
my
$rdcmd
=
"
rdesktop
";
if
(
!
-
d
$rdir
)
{
$rdir
=
"
~fish/misc/rdesktop/rdesktop-1.3.1
";
my
$rdcmd
=
"
cd
$rdir
; ./rdesktop
";
}
die
("
rdp-mime.pl: No rdesktop directory found.
\n
")
if
(
!
-
d
$rdir
);
# Customize -g resolution and -a colordepth to taste.
my
$rdargs
=
"
-K -g 1280x1024 -a 16
";
if
(
!
defined
(
$gateway
))
{
exec
"
$rd
$login
$pswd
$hostname
&
";
exec
"
$rd
cmd
$rdargs
$login
$pswd
$hostname
&
";
}
else
{
die
("
No proxying yet.
\n
");
die
("
rdp-mime.pl:
No proxying yet.
\n
");
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment