Bug#1043291: mate-tweak: can't change MATE panel layout by mate-tweak because of missed mate-volume-control-applet executable

2023-08-10 Thread Norbert X

I'm not too familiar with the internals of the mate-tweak.

So I have reported a bug to upstream 
https://github.com/ubuntu-mate/mate-tweak/issues/94 .

I hope to see Martin's actions there.

Thanks, Mike!

On 8/10/23 10:03, Mike Gabriel wrote:

Hi Norbert,
(Cc:ing Martin Wimpress)

On  Mi 09 Aug 2023 17:02:16 CEST, Norbert wrote:


Thanks, Mike!

The problem here is caused by `mate-volume-control-applet` file 
location.

It came from `mate-media`, you are right about this package
Problem persists even with the installed `mate-media` package.
In Debian 10 (buster) it was located in PATH -
`/usr/bin/mate-volume-control-applet` (see
https://packages.debian.org/search?suite=buster=any=path=contents=mate-volume-control-applet 


).
But in Debian 11 and newer it is located in non-PATH place -
`/usr/libexec/mate-volume-control-applet` (see
https://packages.debian.org/search?suite=bullseye=any=path=contents=mate-volume-control-applet). 


So it can't be found by `mate-tweak` (see
https://sources.debian.org/src/mate-tweak/22.10.0-2/mate-tweak/?hl=78#L571 


).

My local quick and dirty hack is the following:
```
sudo ln -sf /usr/libexec/mate-volume-control-applet
/usr/local/bin/mate-volume-control-applet
```

But I would suggest fixing this problem in the `mate-tweak` script - for
example you can call this applet by full path -
`/usr/libexec/mate-volume-control-applet`.
It is still applicable for default Debian installation without Ayatana
indicators.


Ah, now I see more clearly.

The correct fix for mate-tweak will probably be to check both 
locations (/usr/bin/ and /usr/libexec/) and execute the 
mate-volume-control-applet found (with preference to /usr/libexec, 
maybe).


Can you propose such a patch to mate-tweak upstream?

Thanks + Greets,
Mike




Bug#1043291: mate-tweak: can't change MATE panel layout by mate-tweak because of missed mate-volume-control-applet executable

2023-08-10 Thread Mike Gabriel

Hi Norbert,
(Cc:ing Martin Wimpress)

On  Mi 09 Aug 2023 17:02:16 CEST, Norbert wrote:


Thanks, Mike!

The problem here is caused by `mate-volume-control-applet` file location.
It came from `mate-media`, you are right about this package
Problem persists even with the installed `mate-media` package.
In Debian 10 (buster) it was located in PATH -
`/usr/bin/mate-volume-control-applet` (see
https://packages.debian.org/search?suite=buster=any=path=contents=mate-volume-control-applet
).
But in Debian 11 and newer it is located in non-PATH place -
`/usr/libexec/mate-volume-control-applet` (see
https://packages.debian.org/search?suite=bullseye=any=path=contents=mate-volume-control-applet).
So it can't be found by `mate-tweak` (see
https://sources.debian.org/src/mate-tweak/22.10.0-2/mate-tweak/?hl=78#L571
).

My local quick and dirty hack is the following:
```
sudo ln -sf /usr/libexec/mate-volume-control-applet
/usr/local/bin/mate-volume-control-applet
```

But I would suggest fixing this problem in the `mate-tweak` script - for
example you can call this applet by full path -
`/usr/libexec/mate-volume-control-applet`.
It is still applicable for default Debian installation without Ayatana
indicators.


Ah, now I see more clearly.

The correct fix for mate-tweak will probably be to check both  
locations (/usr/bin/ and /usr/libexec/) and execute the  
mate-volume-control-applet found (with preference to /usr/libexec,  
maybe).


Can you propose such a patch to mate-tweak upstream?

Thanks + Greets,
Mike
--

DAS-NETZWERKTEAM
c\o Technik- und Ökologiezentrum Eckernförde
Mike Gabriel, Marienthaler Str. 17, 24340 Eckernförde
mobile: +49 (1520) 1976 148
landline: +49 (4351) 850 8940

GnuPG Fingerprint: 9BFB AEE8 6C0A A5FF BF22  0782 9AF4 6B30 2577 1B31
mail: mike.gabr...@das-netzwerkteam.de, http://das-netzwerkteam.de



pgpEe7LX02wzD.pgp
Description: Digitale PGP-Signatur


Bug#1043291: mate-tweak: can't change MATE panel layout by mate-tweak because of missed mate-volume-control-applet executable

2023-08-09 Thread Norbert
Thanks, Mike!

The problem here is caused by `mate-volume-control-applet` file location.
It came from `mate-media`, you are right about this package
Problem persists even with the installed `mate-media` package.
In Debian 10 (buster) it was located in PATH -
`/usr/bin/mate-volume-control-applet` (see
https://packages.debian.org/search?suite=buster=any=path=contents=mate-volume-control-applet
).
But in Debian 11 and newer it is located in non-PATH place -
`/usr/libexec/mate-volume-control-applet` (see
https://packages.debian.org/search?suite=bullseye=any=path=contents=mate-volume-control-applet).
So it can't be found by `mate-tweak` (see
https://sources.debian.org/src/mate-tweak/22.10.0-2/mate-tweak/?hl=78#L571
).

My local quick and dirty hack is the following:
```
sudo ln -sf /usr/libexec/mate-volume-control-applet
/usr/local/bin/mate-volume-control-applet
```

But I would suggest fixing this problem in the `mate-tweak` script - for
example you can call this applet by full path -
`/usr/libexec/mate-volume-control-applet`.
It is still applicable for default Debian installation without Ayatana
indicators.


Bug#1043291: mate-tweak: can't change MATE panel layout by mate-tweak because of missed mate-volume-control-applet executable

2023-08-09 Thread Mike Gabriel

Hi Norbert,

thanks for reporting this issue.

On  Di 08 Aug 2023 18:19:14 CEST, Norbert wrote:


Package: mate-tweak
Version: 22.10.0-2
Severity: normal
X-Debbugs-Cc: nrb...@gmail.com

Dear Maintainer,

please repeat the following steps to reproduce the issue:
1. Install task-mate-desktop with mate-tweak to get full MATE desktop
2. Launch mate-tweak from terminal
3. Go to Panel tab, then try to switch panel layouts using drop-down menu

Expected results:
* user is able to select any available MATE Panel layouts - one from Fedora,
GNOME, openSUSE

Actual results:
* user is unable to select needed panel layout, gets the following error
messages in the terminal:

```
$ mate-tweak
[...]
FileNotFoundError: [Errno 2] No such file or directory: 'mate-volume-control-
applet'
[...]


Would you suggest adding mate-media to Depends: field of mate-tweak?  
Any alternative approach thinkable?


Mike
--

DAS-NETZWERKTEAM
c\o Technik- und Ökologiezentrum Eckernförde
Mike Gabriel, Marienthaler Str. 17, 24340 Eckernförde
mobile: +49 (1520) 1976 148
landline: +49 (4351) 850 8940

GnuPG Fingerprint: 9BFB AEE8 6C0A A5FF BF22  0782 9AF4 6B30 2577 1B31
mail: mike.gabr...@das-netzwerkteam.de, http://das-netzwerkteam.de



pgpKY0KirYOCJ.pgp
Description: Digitale PGP-Signatur


Bug#1043291: mate-tweak: can't change MATE panel layout by mate-tweak because of missed mate-volume-control-applet executable

2023-08-08 Thread Norbert
Package: mate-tweak
Version: 22.10.0-2
Severity: normal
X-Debbugs-Cc: nrb...@gmail.com

Dear Maintainer,

please repeat the following steps to reproduce the issue:
1. Install task-mate-desktop with mate-tweak to get full MATE desktop
2. Launch mate-tweak from terminal
3. Go to Panel tab, then try to switch panel layouts using drop-down menu

Expected results:
* user is able to select any available MATE Panel layouts - one from Fedora,
GNOME, openSUSE

Actual results:
* user is unable to select needed panel layout, gets the following error
messages in the terminal:

```
$ mate-tweak
Window Manager is: marco-no-composite
System installed layouts:
['fedora', 'default', 'opensuse']
Current layout: opensuse
/usr/bin/mate-tweak:684: PyGTKDeprecationWarning: The "buttons" argument must
be a Gtk.ButtonsType enum value. Please use the "add_buttons" 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 "flags" 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
"label" 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 "/usr/bin/mate-tweak", line 1047, in combo_fallback
self.additional_tweaks(schema, key, value[1])
  File "/usr/bin/mate-tweak", line 1031, in additional_tweaks
self.replace_panel_layout(panel_layout)
  File "/usr/bin/mate-tweak", line 768, in replace_panel_layout
self.enable_applets()
  File "/usr/bin/mate-tweak", line 571, in enable_applets
pid = subprocess.Popen(['mate-volume-control-applet'], stdout=DEVNULL,
stderr=DEVNULL).pid

  File "/usr/lib/python3.11/subprocess.py", line 1024, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.11/subprocess.py", line 1901, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'mate-volume-control-
applet'
/usr/bin/mate-tweak:684: PyGTKDeprecationWarning: The "buttons" argument must
be a Gtk.ButtonsType enum value. Please use the "add_buttons" 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 "flags" 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
"label" 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 "/usr/bin/mate-tweak", line 1047, in combo_fallback
self.additional_tweaks(schema, key, value[1])
  File "/usr/bin/mate-tweak", line 1031, in additional_tweaks
self.replace_panel_layout(panel_layout)
  File "/usr/bin/mate-tweak", line 768, in replace_panel_layout
self.enable_applets()
  File "/usr/bin/mate-tweak", line 571, in enable_applets
pid = subprocess.Popen(['mate-volume-control-applet'], stdout=DEVNULL,
stderr=DEVNULL).pid

  File "/usr/lib/python3.11/subprocess.py", line 1024, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.11/subprocess.py", line 1901, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'mate-volume-control-
applet'
/usr/bin/mate-tweak:684: PyGTKDeprecationWarning: The "buttons" argument must
be a Gtk.ButtonsType enum value. Please use the "add_buttons" 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 "flags" argument for
dialog construction is deprecated. Please use initializer