Bug 30458 - apt-indicator и gksu
Summary: apt-indicator и gksu
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: xdg-utils (show other bugs)
Version: unstable
Hardware: all Linux
: P3 normal
Assignee: Michael Shigorin
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-10 11:01 MSK by Pavel Isopenko
Modified: 2015-02-26 18:05 MSK (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pavel Isopenko 2014-11-10 11:01:34 MSK
Опять не работает автоматическое обновление. В Centaurus 6 такое было, в 7.0.4 повторяется. Итак, свежеустановленный Centaurus 7.0.4, рабочая станция по умолчанию.
apt-indicator, есть обновления.
Запустить программу обновления.
"Утилита смены пользователя не найдена, попробуйте установить gksu"
$ sudo apt-get install gksu
Reading Package Lists... Done
Building Dependency Tree... Done
gksu is already the newest version.
0 upgraded, 0 newly installed, 0 removed and 0 not upgraded.
Comment 1 Andrey Cherepanov 2014-11-10 11:34:18 MSK
На пакет в Sisyphus.
Comment 2 Sergey V Turchin 2014-11-10 15:16:31 MSK
Покажите из под пользователя в эмуляторе терминала вывод команды:
xdg-su -c synaptic
Comment 3 Pavel Isopenko 2014-11-10 15:37:17 MSK
$ xdg-su -c synaptic
xdg-su: no graphical method available for invoking 'synaptic' as 'root'
Comment 4 Artemenko Dmitry 2015-02-23 23:04:00 MSK
Решение:
В /usr/bin/xdg-su

В конце, в case "$DE" in... добавляем:
    mate)
    su_gnome
    ;;

Соответственно gksu должен быть установлен.
Уважаемые маинтейнеры, запилите пожалуйста этот не хитрый патч, а то очень огорчает - юзеры жалуются.
Comment 5 Michael Shigorin 2015-02-26 17:21:49 MSK
Ох уж это кривое xdg-поделие...
Comment 6 Michael Shigorin 2015-02-26 17:38:32 MSK
Просьба проверить пакет из http://git.altlinux.org/tasks/141065/
Comment 7 Artemenko Dmitry 2015-02-26 17:57:11 MSK
Из tasks 141065:
$ bash -x xdg-su -c true
...
+ case "$DE" in
+ su_gnome
++ which gnomesu
+ GSU=
+ '[' 1 -ne 0 ']'
++ which xsu
+ GSU=
+ '[' 1 -eq 0 ']'
+ su_generic
++ which gksu
+ XSU=/usr/bin/gksu
+ '[' 0 -eq 0 ']'
+ '[' -z '' ']'
+ /usr/bin/gksu -l true
+ '[' 0 -eq 0 ']'
+ exit_success
+ '[' 0 -gt 0 ']'
+ exit 0

Стало быть все работает, можно закрывать.
Comment 8 Repository Robot 2015-02-26 18:05:11 MSK
xdg-utils-1.1.0-alt11 -> sisyphus:

* Thu Feb 26 2015 Michael Shigorin <mike@altlinux> 1.1.0-alt11
- xdg-su: added MATE support (closes: #30458)