Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting layout from command line doesn't work #89

Open
baryluk opened this issue Sep 4, 2022 · 2 comments
Open

Setting layout from command line doesn't work #89

baryluk opened this issue Sep 4, 2022 · 2 comments

Comments

@baryluk
Copy link

baryluk commented Sep 4, 2022

$ mate-tweak --get-layout
Window Manager is: marco
System installed layouts: 
['fedora', 'default', 'opensuse']
Current layout: witek-tweak

$ mate-tweak --layout witek-tweak
Window Manager is: marco
System installed layouts: 
['fedora', 'default', 'opensuse']
Current layout: witek-tweak
Switching to: witek-tweak
Found section Customsetting windowcontrollayout
Traceback (most recent call last):
  File "/usr/bin/mate-tweak", line 1737, in <module>
    mt.replace_panel_layout(args.layout, True)
  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.10/subprocess.py", line 969, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.10/subprocess.py", line 1845, 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'
$ 

Same when trying to use fedora or default

I am on Debian testing, with pretty standard layout, with just added few launchers, cpu frequency and system monitor applets.

mate-tweak 22.04.8-1

@baryluk
Copy link
Author

baryluk commented Sep 4, 2022

Actually it might be because of mate-media package was removed from Debian. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=971783

Still, it would be good to fall more gracefully.

@cwendling
Copy link

Actually it might be because of mate-media package was removed from Debian. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=971783

The bug mentioned doesn't speak about removal (yet), and it's hasn't. However, MATE changed the name of the "applet" (that is not really one, it's a status icon) to mate-volume-control-status-icon, so you'll have to adjust in your custom profile.

This said indeed maybe mate-tweak could either help the transition, or fail a little more gracefully (maybe simply explaining what's wrong instead of a plain backtrace).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants