xdg-open не может открыть файл

Нет, команды типа psи topпоказывают только текущее состояние процессов. Невозможно узнать, каким был статус процесса в прошлом, если вы еще не настроили систему мониторинга.

В будущем вы можете настроить atopдля регистрации статуса процесса. Из его справочной страницы:

In order to store system- and process level statistics for long-term analysis (e.g. to check the system load and the active processes running yesterday between 3:00 and 4:00 PM), atop can store the system- and process level statistics in compressed binary format in a raw file with the flag -w followed by the filename. If this file already exists and is recognized as a raw data file, atop will append new samples to the file (starting with a sample which reflects the activity since boot); if the file does not exist, it will be created.

By default only processes which have been active during the interval are stored in the raw file. When the flag -a is specified, all processes will be stored. The interval (default: 10 seconds) and number of samples (default: infinite) can be passed as last arguments. Instead of the number of samples, the flag -S can be used to indicate that atop should finish anyhow before midnight.

Понятно, и как уже было сказано, atopначнет запись только с того момента, как вы его настроите.

2
15.01.2020, 22:46
1 ответ

Наконец-то я заработал. Мне пришлось установить значение по умолчанию в $HOME/.config/mimetypes , и теперь xdg-open filename.odsработает как положено:

xdg-mime default libreoffice-calc.desktop 'application/vnd.oasis.opendocument.spreadsheet'

Так что в вашем случае это должно работать для файлов Excel:

xdg-mime default libreoffice-calc.desktop 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
0
27.01.2020, 22:24

Теги

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