如何从终端打开特定文件夹中的Dolphin?


11

我想在运行的任务栏中添加一个启动器图标,dolphin但最初会在我要指定的文件夹中启动

海豚手册》没有对此进行解释。

Answers:



3

帮助页面

KDE应用程序具有帮助-使用Dolphin:

:~$ dolphin --help
Usage: dolphin [Qt-options] [KDE-options] [options] [Url] 

File Manager

Generic options:
  --help                    Show help about options
  --help-qt                 Show Qt specific options
  --help-kde                Show KDE specific options
  --help-all                Show all options
  --author                  Show author information
  -v, --version             Show version information
  --license                 Show license information
  --                        End of options

Options:
  --select                  The files and directories passed as arguments will be selected.
  --split                   Dolphin will get started with a split view.

Arguments:
  Url                       Document to open

使用默认应用程序启动

KDE在KDE系统设置中具有“默认应用程序”。

kfmclient是:

:~$ kfmclient --help
Usage: kfmclient [Qt-options] [KDE-options] [KDE-tempfile-options] [options] command [URL(s)] 

KDE tool for opening URLs from the command line

Generic options:
  --help                    Show help about options
  --help-qt                 Show Qt specific options
  --help-kde                Show KDE specific options
  --help-kde-tempfile       Show KDE-tempfile specific options
  --help-all                Show all options
  --author                  Show author information
  -v, --version             Show version information
  --license                 Show license information
  --                        End of options

Options:
  --noninteractive          Non interactive use: no message boxes
  --commands                Show available commands

Arguments:
  command                   Command (see --commands)
  URL(s)                    Arguments for command

使用默认文件管理器打开目录:

kfmclient exec /path/to/the/directory/

这将与bash配置文件别名或函数很好地集成
PandasRocks

2

如果您想从终端的当前路径打开海豚,请使用,

dolphin . &
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.