当我在 Kubuntu 13.10 中右键单击一个存档并选择提取选项时,不会发生太多事情。任务栏启动器旋转了几秒钟,但实际上没有提取任何内容。我怀疑有些东西正在爆炸,但没有终端输出来尝试弄清楚发生了什么。
我想手动运行 KDE 正在运行的命令,以便我可以查看问题所在,并希望能够修复它。但是右键单击选项存储在哪里?我在哪里可以找到 KDE 试图运行的命令?
服务菜单
'Extract Archive Here' 是一个 KDE 服务菜单 /1/

系统 KDE 服务菜单桌面文件位于:/usr/share/kde4/services/ServiceMenus/
ark_servicemenu.desktop /2/ 有“在此处提取存档”选项。它正在执行命令:
ark --batch --autodestination %F
Run Code Online (Sandbox Code Playgroud)
%F /3/ 是:
文件列表。用于可以一次打开多个本地文件的应用程序。每个文件都作为单独的参数传递给可执行程序。
更多的方舟选项可以从 man 中获得:
man ark
ARK(1) KDE User's Manual ARK(1)
NAME
ark - KDE archiving tool
SYNOPSIS
ark [-b] [-a] [-e] [-c] [-f suffix] [-p] [-t file] [-d] [-o directory] [KDE Generic Options]
[Qt(TM) Generic Options]
DESCRIPTION
Ark is a program for managing various compressed file formats within KDE. Archives can be viewed, extracted,
created and modified with Ark. The program can handle various formats such as tar, gzip, bzip2, zip, rar (when
the appropriate libraries or command-line programs are installed).
OPERATION MODES
Ark can be used either as a stand-alone GUI program as well as a command-line program in order to perform some
specific tasks.
If invoked without the -b (--batch) or -c (--add) options, Ark is started as a normal GUI program.
When the -b (--batch) option is used, Ark can be used to extract the contents of one or more files directly
from the command-line, without launching its GUI.
When the -c (--add) option is used, Ark prompts for files that should be added to a new archive or to an
existing archive.
OPTIONS
...
Options for batch extraction
-b, --batch
Use the batch interface instead of the usual dialog. This option is implied if more than one url is
specified.
-e, --autodestination
The destination argument will be set to the path of the first file supplied.
Run Code Online (Sandbox Code Playgroud)
链接
| 归档时间: |
|
| 查看次数: |
1030 次 |
| 最近记录: |