Skip to content

Commit 4e83fcb

Browse files
committed
Remove old code for netsurf browser
Commit 973b810 replaced netsurf by dwb, but html uploads were still shown using netsurf. Now all remaining netsurf code is removed. Signed-off-by: Stefan Weil <[email protected]>
1 parent 5b4f29d commit 4e83fcb

File tree

3 files changed

+4
-21
lines changed

3 files changed

+4
-21
lines changed

FileHandler.class.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function show($path) {
2929
}
3030
}
3131

32-
class NetsurfHandler extends FileHandler {
32+
class DwbHandler extends FileHandler {
3333
function getControls() {
3434
return FileHandler::CURSOR | FileHandler::ZOOM;
3535
}
@@ -107,7 +107,7 @@ public static function getFileHandler($file) {
107107
$fhandler='/usr/bin/libreoffice --calc -o -n --nologo --norestore --view';
108108

109109
} else if ($ftype==='html' || $ftype==='url') {
110-
$fhandler='/usr/bin/netsurf';
110+
$fhandler='/usr/bin/dwb --override-restore';
111111

112112
} else if ($ftype==='mpg' || $ftype==='mpeg' || $ftype==='avi' ||
113113
$ftype==='mp3' || $ftype=="mp4") {
@@ -132,11 +132,11 @@ public static function getFileHandler($file) {
132132

133133
if ($unittest[__FILE__]) {
134134
// Run unit test.
135-
$netsurfHandler = new NetsurfHandler;
135+
$dwbHandler = new DwbHandler;
136136
$zathuraHandler = new ZathuraHandler;
137137
echo("DOWNLOAD =" . FileHandler::DOWNLOAD . "\n");
138138
echo("filehandler=" . FileHandler::getFileHandler("test.txt") . "\n");
139-
$handler = ${'netsurf' . 'Handler'};
139+
$handler = ${'dwb' . 'Handler'};
140140
echo("controls =" . $handler->getControls() . "\n");
141141
}
142142

control.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,6 @@ function processRequests($db) {
468468
"state" => "",
469469
"file" => $openURL,
470470
// "handler" => "iceweasel --new-window",
471-
//~ "handler" => "/usr/bin/nohup /usr/bin/netsurf",
472471
"handler" => "/usr/bin/nohup /usr/bin/dwb",
473472
"userid" => "",
474473
"date" => $date

index.php

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -578,20 +578,6 @@ function getHandlerCommand(handle, task) {
578578
handler["eog"]["zoomout"] = "ctrl+minus";
579579
handler["eog"]["download"] = "download";
580580

581-
// Alternate handler for web pages (not used by default).
582-
handler["netsurf"] = new Object();
583-
handler["netsurf"]["up"] = " Tab+Up";
584-
handler["netsurf"]["down"] = "Tab+Down";
585-
handler["netsurf"]["left"] = "Tab+Left";
586-
handler["netsurf"]["right"] = "Tab+Right";
587-
handler["netsurf"]["next"] = "Tab+Next";
588-
handler["netsurf"]["prior"] = "Tab+Prior";
589-
handler["netsurf"]["home"] = "Tab+Home";
590-
handler["netsurf"]["end"] = "Tab+End";
591-
handler["netsurf"]["zoomin"] = "Tab+ctrl+plus";
592-
handler["netsurf"]["zoomout"] = "Tab+ctrl+minus";
593-
handler["netsurf"]["download"] = "download";
594-
595581
// Controls in LibreOffice: no zoom in calc and writer, has to be activated first
596582
// by pressing <Ctrl+Shift+o> (switch view mode on/off) not implemented yet
597583
handler["libreoffice"] = new Object();
@@ -961,8 +947,6 @@ function updateControlsBySection(window) {
961947
}
962948
} else if (handler.indexOf("dwb") > -1) {
963949
control = new Array("dwb", true, true, true, true, true, true, true, true, true, true, true);
964-
} else if (handler.indexOf("netsurf") > -1) {
965-
control = new Array("netsurf", true, true, true, true, true, true, false, false, false, false, true);
966950
} else if (handler.indexOf("vlc") > -1) {
967951
control = new Array("vlc", false, false, false, true, false, false, false, false, false, false, false);
968952
} else if (handler.indexOf("vnc") > -1) {

0 commit comments

Comments
 (0)