Como posso ativar informações: links no Konqueror

2

man: e help: funciona bem, mas se eu inserir um info: link ele diz:

The requested operation could not be completed Cannot Initiate the info Protocol Technical Reason: Unable to Launch Process

Possible Causes:

The program which provides compatibility with this protocol may not have been updated with your last update of KDE. This can cause the program to be incompatible with the current version and thus not start. You may have encountered a bug in the program.

Eu não sei se isso é um bug ou se algo deu errado com o meu sistema.

    
por Martin Thomas 30.04.2016 / 18:34

1 resposta

1

Isso parece ser um bug (veja: link ). Parece ter sido corrigido a montante, mas não no Ubuntu (pelo menos não em 16.04).

A correção (presente no relatório de bug acima) consiste em alterar duas linhas em um script perl ( /usr/share/kde4/apps/kio_info/kde-info2html ), para que possa ser facilmente aplicado manualmente. Em formato de patch:

@@ -171,7 +171,7 @@
        next if $looking && !/\* Menu/;
        $looking = 0;
        my @item = &ParseMenuItem($_,'dir');
-       if (!defined(@item)) { next }
+       if (!@item) { next }
            my ($MenuLinkTag, $MenuLinkFile, $MenuLinkRef, $MenuLinkText) = @item;
        if ($MenuLinkRef eq $FileName) {
            &Redirect($MenuLinkFile, $MenuLinkTag);
@@ -429,7 +429,7 @@
 sub MenuItem2HTML {
     my ($Line, $BaseInfoFile) = @_;
     my @parse_results = &ParseMenuItem($Line, $BaseInfoFile);
-    if (!defined (@parse_results)) { return $Line; }
+    if (!@parse_results) { return $Line; }
     my ($MenuLinkTag, $MenuLinkFile, $MenuLinkRef, $MenuLinkText) = @parse_results;
     #-- produce a HTML line
     return "<tr class=\"infomenutr\"><td class=\"infomenutd\" style=\"width:30%\"><ul><li><a href=\"info:/$MenuLinkFile/$MenuLinkTag\">$MenuLinkRef</a></ul></td><td class=\"infomenutd\">$MenuLinkText";
    
por aplaice 16.08.2016 / 20:58