Как запустить файловый менеджер дельфина из командной строки или сценарий удара (и дать ему путь)?

Я хочу открыть окно Dolphin из сценария удара. Это не может относиться к вопросу, но я буду соединяться с местоположением SFTP у дельфина.

Сначала я попробовал эту команду из своего сценария:

dolphin sftp://MyHost:1234

Это приводит к нескольким предупреждениям:

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"

Затем я попробовал эту команду из своего сценария:

dbus-launch dolphin sftp://MyHost:1234

Это приводит еще к большему количеству предупреждений:

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"

Как я запускаю файловый менеджер дельфина из сценария удара и даю его (SFTP) путь?

0
задан 21 July 2013 в 13:02

1 ответ

Помогает ли это:

Использование ssh для просмотра удаленной файловой системы в Dolphin & amp; Konqueror в KDE

, а затем перенаправить stderr в файл или / dev / null следующим образом:

dolphin sftp://<usr@host>/ 2> /dev/null
0
ответ дан 21 July 2013 в 13:02

Другие вопросы по тегам:

Похожие вопросы: