gtk-launch command

觀看 help

執行

$ gtk-launch --help

或是執行

$ gtk-launch -h

顯示

Usage:
  gtk-launch [OPTION...] APPLICATION [URI…] — launch an APPLICATION with URI.

Launch specified application by its desktop file info
optionally passing list of URIs as arguments.

Help Options:
  -h, --help               Show help options
  --help-all               Show all help options
  --help-gtk               Show GTK+ Options

Application Options:
  --display=DISPLAY        X display to use

觀看 manpage

執行

$ whatis gtk-launch

顯示

gtk-launch (1)       - Launch an application

執行

$ man gtk-launch

會看到「說明」。

查詢 gtk-launch 放在那個位置

執行

$ whereis gtk-launch

顯示

gtk-launch: /usr/bin/gtk-launch /usr/share/man/man1/gtk-launch.1.gz

查詢 gtk-launch 屬於那個套件

執行

$ dpkg -S /usr/bin/gtk-launch

顯示

libgtk-3-bin: /usr/bin/gtk-launch

表示「/usr/bin/gtk-launch」是屬於「libgtk-3-bin」這個套件。

使用範例

執行

$ ls /usr/share/applications/gedit.desktop

顯示

/usr/share/applications/gedit.desktop

執行

$ gtk-launch gedit