<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>43443</bug_id>
          
          <creation_ts>2022-08-03 20:25:14 +0300</creation_ts>
          <short_desc>mate-tweak не изменяет настройки панелей (panel layout) MATE</short_desc>
          <delta_ts>2025-02-16 21:45:30 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>mate-tweak</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Nikolay Strelkov">n.strelkov</reporter>
          <assigned_to name="Andrey Cherepanov">cas</assigned_to>
          <cc>antohami</cc>
    
    <cc>cas</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>213418</commentid>
    <comment_count>0</comment_count>
    <who name="Nikolay Strelkov">n.strelkov</who>
    <bug_when>2022-08-03 20:25:14 +0300</bug_when>
    <thetext>Шаги для повторения:
1. Запускаем ALW p10 MATE или StarterKit MATE p10
2. Устанавливаем MATE Tweak командой `apt-get install mate-tweak`
3. Запускаем MATE Tweak из терминала с помощью команды `mate-tweak`
4. Переходим на вкладку Panel, пытаемся выбрать panel layout из выпадающего списка

Ожидаемый результат:
* переключение всех раскладок панелей (Fedora, GNOME2, OpenSUSE) проходит успешно


Реальный результат:
* переключения раскладки панелей не происходит, в терминале отображается следующее сообщение

```
$ mate-tweak 
Window Manager is: marco
System installed layouts: 
[&apos;fedora&apos;, &apos;default&apos;, &apos;opensuse&apos;]
Current layout: default
/usr/bin/mate-tweak:684: PyGTKDeprecationWarning: The &quot;buttons&quot; argument must be a Gtk.ButtonsType enum value. Please use the &quot;add_buttons&quot; method for adding buttons. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
  dialog = Gtk.Dialog(title, None, Gtk.DialogFlags.MODAL | Gtk.DialogFlags.DESTROY_WITH_PARENT,
/usr/bin/mate-tweak:684: PyGTKDeprecationWarning: The &quot;flags&quot; argument for dialog construction is deprecated. Please use initializer keywords: modal=True and/or destroy_with_parent=True. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
  dialog = Gtk.Dialog(title, None, Gtk.DialogFlags.MODAL | Gtk.DialogFlags.DESTROY_WITH_PARENT,
/usr/bin/mate-tweak:690: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for &quot;label&quot; or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
  label = Gtk.Label(text)
Switching to: opensuse
Traceback (most recent call last):
  File &quot;/usr/bin/mate-tweak&quot;, line 1047, in combo_fallback
    self.additional_tweaks(schema, key, value[1])
  File &quot;/usr/bin/mate-tweak&quot;, line 1031, in additional_tweaks
    self.replace_panel_layout(panel_layout)
  File &quot;/usr/bin/mate-tweak&quot;, line 768, in replace_panel_layout
    self.enable_applets()
  File &quot;/usr/bin/mate-tweak&quot;, line 571, in enable_applets
    pid = subprocess.Popen([&apos;mate-volume-control-applet&apos;], stdout=DEVNULL, stderr=DEVNULL).pid
  File &quot;/usr/lib64/python3.9/subprocess.py&quot;, line 951, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File &quot;/usr/lib64/python3.9/subprocess.py&quot;, line 1821, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: &apos;mate-volume-control-applet&apos;
/usr/bin/mate-tweak:684: PyGTKDeprecationWarning: The &quot;buttons&quot; argument must be a Gtk.ButtonsType enum value. Please use the &quot;add_buttons&quot; method for adding buttons. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
  dialog = Gtk.Dialog(title, None, Gtk.DialogFlags.MODAL | Gtk.DialogFlags.DESTROY_WITH_PARENT,
/usr/bin/mate-tweak:684: PyGTKDeprecationWarning: The &quot;flags&quot; argument for dialog construction is deprecated. Please use initializer keywords: modal=True and/or destroy_with_parent=True. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
  dialog = Gtk.Dialog(title, None, Gtk.DialogFlags.MODAL | Gtk.DialogFlags.DESTROY_WITH_PARENT,
/usr/bin/mate-tweak:690: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for &quot;label&quot; or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
  label = Gtk.Label(text)
Switching to: fedora
Traceback (most recent call last):
  File &quot;/usr/bin/mate-tweak&quot;, line 1047, in combo_fallback
    self.additional_tweaks(schema, key, value[1])
  File &quot;/usr/bin/mate-tweak&quot;, line 1031, in additional_tweaks
    self.replace_panel_layout(panel_layout)
  File &quot;/usr/bin/mate-tweak&quot;, line 768, in replace_panel_layout
    self.enable_applets()
  File &quot;/usr/bin/mate-tweak&quot;, line 571, in enable_applets
    pid = subprocess.Popen([&apos;mate-volume-control-applet&apos;], stdout=DEVNULL, stderr=DEVNULL).pid
  File &quot;/usr/lib64/python3.9/subprocess.py&quot;, line 951, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File &quot;/usr/lib64/python3.9/subprocess.py&quot;, line 1821, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: &apos;mate-volume-control-applet&apos;
/usr/bin/mate-tweak:684: PyGTKDeprecationWarning: The &quot;buttons&quot; argument must be a Gtk.ButtonsType enum value. Please use the &quot;add_buttons&quot; method for adding buttons. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
  dialog = Gtk.Dialog(title, None, Gtk.DialogFlags.MODAL | Gtk.DialogFlags.DESTROY_WITH_PARENT,
/usr/bin/mate-tweak:684: PyGTKDeprecationWarning: The &quot;flags&quot; argument for dialog construction is deprecated. Please use initializer keywords: modal=True and/or destroy_with_parent=True. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
  dialog = Gtk.Dialog(title, None, Gtk.DialogFlags.MODAL | Gtk.DialogFlags.DESTROY_WITH_PARENT,
/usr/bin/mate-tweak:690: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for &quot;label&quot; or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
  label = Gtk.Label(text)
Switching to: default
Traceback (most recent call last):
  File &quot;/usr/bin/mate-tweak&quot;, line 1047, in combo_fallback
    self.additional_tweaks(schema, key, value[1])
  File &quot;/usr/bin/mate-tweak&quot;, line 1031, in additional_tweaks
    self.replace_panel_layout(panel_layout)
  File &quot;/usr/bin/mate-tweak&quot;, line 768, in replace_panel_layout
    self.enable_applets()
  File &quot;/usr/bin/mate-tweak&quot;, line 571, in enable_applets
    pid = subprocess.Popen([&apos;mate-volume-control-applet&apos;], stdout=DEVNULL, stderr=DEVNULL).pid
  File &quot;/usr/lib64/python3.9/subprocess.py&quot;, line 951, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File &quot;/usr/lib64/python3.9/subprocess.py&quot;, line 1821, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: &apos;mate-volume-control-applet&apos;
```

Есть предположение, что MATE Tweak где-то не там ищет исполняемый файл mate-volume-control-applet и не доходит в коде до реальной смены раскладки панелей. Это подтверждается результативным применением нелепого хака `sudo ln -sf /usr/libexec/mate-volume-control-applet /usr/local/bin/mate-volume-control-applet` .

В Сизифе тоже не работает. На p9 работает и без хака.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>213429</commentid>
    <comment_count>1</comment_count>
    <who name="Антон Мидюков">antohami</who>
    <bug_when>2022-08-04 08:18:34 +0300</bug_when>
    <thetext>Процесс по-другому теперь называется, не mate-volume-control-applet, а mate-volume-control-status-icon. Если поменять, то работает.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>259379</commentid>
    <comment_count>2</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2025-02-16 21:45:30 +0300</bug_when>
    <thetext>mate-tweak-1:22.10.0-alt3 -&gt; sisyphus:

 Sun Feb 16 2025 Nikolay Strelkov &lt;snk@altlinux&gt; 1:22.10.0-alt3
 - NMU: added patch to correct paths for brisk-menu, vala-panel-appmenu
   and mate-volume-control (closes: #43443), support default themes.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>