Como iniciar o gerenciador de arquivos Dolphin a partir da linha de comando ou do script bash (e fornecer um caminho)?

0

Eu quero abrir uma janela do Dolphin a partir de um script bash. Pode não ser relevante para a pergunta, mas eu me conectarei a um local SFTP no Dolphin.

Primeiro eu tentei este comando do meu script:

dolphin sftp://MyHost:1234

Isso resulta em vários avisos:

kdeinit4: Shutting down running client. klauncher: Exiting on signal
15 Connecting to deprecated signal
QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
QDBusConnection: session D-Bus connection created before
QCoreApplication. Application may misbehave. KDE Daemon (kded) already
running. QDBusConnection: session D-Bus connection created before
QCoreApplication. Application may misbehave. kbuildsycoca4 running...
kbuildsycoca4(13252) KConfigGroup::readXdgListEntry: List entry
MimeType in "/usr/NX/share/applnk/x-nxclient/nxclient.desktop" is not
compliant with XDG standard (missing trailing semicolon). 
kbuildsycoca4(13252) parseLayoutNode: The menu spec file contains a
Layout or DefaultLayout tag without the mandatory Merge tag inside.
Please fix your file.  kbuildsycoca4(13252) parseLayoutNode: The menu
spec file contains a Layout or DefaultLayout tag without the mandatory
Merge tag inside. Please fix your file.  dolphin(13244)
KXMLGUI::ActionList::plug: Index  19  is not within range (0 -  11 
kio_trash(13254) TrashProtocol::createUDSEntry: couldn't stat 
"/home/user/.local/share/Trash/files/.DS_Store"

Em seguida, tentei este comando no meu script:

dbus-launch dolphin sftp://MyHost:1234

Isso resulta em ainda mais avisos:

kdeinit4: Shutting down running client. Connecting to deprecated
signal
QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
QDBusConnection: session D-Bus connection created before
QCoreApplication. Application may misbehave. QDBusConnection: session
D-Bus connection created before QCoreApplication. Application may
misbehave. kbuildsycoca4 running... QDBusObjectPath: invalid path ""
QObject::connect: Cannot connect (null)::deviceFound(Device*) to
BlueDevilDaemon::deviceFound(Device*) QObject::connect: Cannot connect
QTimer::timeout() to (null)::stopDiscovery() QDBusConnection: session
D-Bus connection created before QCoreApplication. Application may
misbehave. QDBusConnection: session D-Bus connection created before
QCoreApplication. Application may misbehave. QDBusConnection: session
D-Bus connection created before QCoreApplication. Application may
misbehave. QDBusConnection: session D-Bus connection created before
QCoreApplication. Application may misbehave. QDBusConnection: session
D-Bus connection created before QCoreApplication. Application may
misbehave. No outputs have backlight property QDBusConnection: session
D-Bus connection created before QCoreApplication. Application may
misbehave. dolphin(13176) KXMLGUI::ActionList::plug: Index  19  is not
within range (0 -  11  QDBusConnection: name 'org.kde.kglobalaccel'
had owner '' but we thought it was ':1.5' Warning from helper: reading
brightness failed with error code  5 "No such file or directory" 
Warning from helper: reading brightness failed with error code  5 "No
such file or directory"  kded(13187)
PowerDevilUPowerBackend::brightness:
org.kde.powerdevil.backlighthelper.brightness failed  Warning from
helper: writing brightness failed with error code  5 "No such file or
directory"  Warning from helper: writing brightness failed with error
code  5 "No such file or directory"  kded(13187)
PowerDevilUPowerBackend::setBrightness:
org.kde.powerdevil.backlighthelper.setbrightness failed 
kio_trash(13205) TrashProtocol::createUDSEntry: couldn't stat 
"/home/user/.local/share/Trash/files/.DS_Store"

Como lanço o gerenciador de arquivos Dolphin de um script bash e dou a ele um caminho (SFTP)?

    
por MountainX 21.07.2013 / 04:13

1 resposta

1

Isso ajuda:

Usando o ssh para navegar pelo sistema de arquivos remotos no Dolphin & amp; Konqueror no KDE

e então redirecione o stderr para um arquivo ou / dev / null assim:

dolphin sftp://<usr@host>/ 2> /dev/null
    
por eyoung100 14.04.2014 / 22:24