MacOS-стиль Открытие файлов через консоль с использованием приложений по умолчанию

Другим вариантом является yad

 YAD  is a program that will display GTK+ dialogs, and return (either in
       the return code or on standard output) the users input. This allows you
       to present information, and ask for information from the user, from all
       manner of shell scripts.

       YAD is the fork of Zenity program.

YAD (еще один диалог) - это вилка Zenity со многими улучшениями, такими как пользовательские кнопки, дополнительные диалоги, всплывающее меню в значке уведомлений и Больше. В основном большинство вещей, которые вы когда-либо хотели сделать в Zenity, доступно в YAD: у вас может быть столько кнопок, сколько вы хотите, каждый с нужным текстом, действительно приятный диалог с иконками.

У YAD нет одинаковых диалогов, таких как --error, --info, --question или --warning - вместо этого у него есть диалоговое окно --form, к которому вы можете добавить любое сообщение , кнопки и значки, которые вы хотите. Он также включает диалог --notification, чтобы показать значок в области уведомлений. Для получения справки по использованию YAD см. Разделы примеров в [Wiki] (https://code.google.com/archive/p/yad/wikis/Examples.wiki)

yad доступен в репозитории для всех поддерживаемых в настоящее время версий Ubuntu, хотя, как и многие из этих полезных пакетов, вы должны https://code.google.com/archive/p/yad/wikis/Examples.wiki , если он не включен уже до попытки установки.

Источники:

man yad

http://www.webupd8.org/2010/12/yad-zenity- on-steroids-display.html

http://www.webupd8.org/2010/12/yad-zenity-on-steroids-display.html

https://www.mankier.com/1/yad

1
задан 3 June 2012 в 23:51

8 ответов

Попробуйте xdg-open <your-file>.

   xdg-open opens a file or URL in the user's preferred application. If a
   URL is provided the URL will be opened in the user's preferred web
   browser. If a file is provided the file will be opened in the preferred
   application for files of that type. xdg-open supports file, ftp, http
   and https URLs.
2
ответ дан 25 May 2018 в 10:38

Попробуйте xdg-open <your-file>.

   xdg-open opens a file or URL in the user's preferred application. If a
   URL is provided the URL will be opened in the user's preferred web
   browser. If a file is provided the file will be opened in the preferred
   application for files of that type. xdg-open supports file, ftp, http
   and https URLs.
2
ответ дан 25 July 2018 в 18:39

Попробуйте xdg-open <your-file>.

   xdg-open opens a file or URL in the user's preferred application. If a
   URL is provided the URL will be opened in the user's preferred web
   browser. If a file is provided the file will be opened in the preferred
   application for files of that type. xdg-open supports file, ftp, http
   and https URLs.
2
ответ дан 2 August 2018 в 00:49

Попробуйте xdg-open <your-file>.

   xdg-open opens a file or URL in the user's preferred application. If a
   URL is provided the URL will be opened in the user's preferred web
   browser. If a file is provided the file will be opened in the preferred
   application for files of that type. xdg-open supports file, ftp, http
   and https URLs.
2
ответ дан 4 August 2018 в 16:19

Попробуйте xdg-open <your-file>.

   xdg-open opens a file or URL in the user's preferred application. If a
   URL is provided the URL will be opened in the user's preferred web
   browser. If a file is provided the file will be opened in the preferred
   application for files of that type. xdg-open supports file, ftp, http
   and https URLs.
2
ответ дан 6 August 2018 в 00:58

Попробуйте xdg-open <your-file>.

   xdg-open opens a file or URL in the user's preferred application. If a
   URL is provided the URL will be opened in the user's preferred web
   browser. If a file is provided the file will be opened in the preferred
   application for files of that type. xdg-open supports file, ftp, http
   and https URLs.
2
ответ дан 7 August 2018 в 18:23

Попробуйте xdg-open <your-file>.

   xdg-open opens a file or URL in the user's preferred application. If a
   URL is provided the URL will be opened in the user's preferred web
   browser. If a file is provided the file will be opened in the preferred
   application for files of that type. xdg-open supports file, ftp, http
   and https URLs.
2
ответ дан 10 August 2018 в 07:07

Попробуйте xdg-open <your-file>.

   xdg-open opens a file or URL in the user's preferred application. If a
   URL is provided the URL will be opened in the user's preferred web
   browser. If a file is provided the file will be opened in the preferred
   application for files of that type. xdg-open supports file, ftp, http
   and https URLs.
2
ответ дан 15 August 2018 в 19:05

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

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