DWM неправильно запускает приложения

Попробуйте запустить:

regionset /dev/dvd

Похоже, ваше оборудование работает с другим региональным кодом.

Учтите, что код региона DVD-привода можно изменить всего несколько раз.

How to use the programm

You need write access to the DVD drive, either by group or by being root. The more, there absolutely definitively and in any case must be a readable Data CD or Data/Video DVD in the drive -- it does not matter if it's your favourite Windows CD, a video or a DVD with your last backup.

By default, regionset will use /dev/dvd to find your DVD drive. You can adjust this by entering the path to the DVD device as first command line parameter (please absolute path!).

If everything goes well, regionset will show you the current region code of the drive, how often it has been changed and how many changes are left. If there are any changes left, it asks for the new region code (see table above). After confirmation, the new region code will be set -- if you enter the same region code as the current one of the drive or just break the programm, regionset will just exit without setting the new code. On successful change of the region code, you'll get a confirmation.

Вы находитесь в Европе (регион 2 )?

0
27.06.2020, 15:42
1 ответ

Разобрался! Таким образом, внутри функции "spawn" она вызывает "execvp" (функцию, которая выполняет команды ), которая выглядит следующим образом:

int execvp(const char *file, char *const argv[]);

В этой строке по умолчанию:

static const char *termcmd[]  = { "st", NULL };

Он имеет команду "st" и аргументы "NULL". Я изменил свои собственные строки, чтобы имитировать это, поэтому:

static const char *termcmd[]  = { "/usr/bin/firefox", NULL };

Теперь все работает как положено.

0
18.03.2021, 23:23

Теги

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