How to add a new object to the panel through dconf configuration #1464
Replies: 4 comments 1 reply
-
|
I for one do not know how to do that through dconf |
Beta Was this translation helpful? Give feedback.
-
|
@lukefromdc and do you know how to do it programmatically in a different way? For example by running a command? Thank you. |
Beta Was this translation helpful? Give feedback.
-
|
I've only ever done it from the Add To Panel dialog. I do NOT know how to configure the panel by program. In fact, when I am testing panel
changes if my layout gets screwed up I have to reset everything by hand,
|
Beta Was this translation helpful? Give feedback.
-
|
For a distribution, I'd still recommend creating a custom panel layout (under /usr/share/mate-panel/layouts/) and make it default with a GSettings override. AFAIK it requires re-defining everything, but it allows easy resetting, and makes it independent of other changes. However, if you want to programmatically add one applet, it's also doable. It's not trivial, but here's the gist of it:
I did that in a shell script, but I wouldn't recommend this. Prefer using a real language with a GSettings binding, like e.g. Python. I don't think there is a way to use e.g. GSettings overrides for this, because you need to modify |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, @cwendling for awareness.
I am creating a Fedora remix focused on needs of blind and visually impaired called Vojtux.
Here is the project URL: https://github.com/vojtapolasek/vojtux
I am trying to perform only minimal modifications to the Mate panel, so that I accidentally do not cause more harm.
Basically, my use case would be to add to the panel the "Advanced Mate menu" object.
I would like to add it programmatically. I created a simple RPM package called vojtux-settings which ships some dconf overrides. You can see its current state here:
https://github.com/vojtapolasek/vojtux/tree/master/rpm/vojtux-settings
In the past, I inserted into the override quite a lot of things, basically overriding the whole panel configuration. I thought this might not be necessary.
You can see in this PR: vojtapolasek/vojtux#89 that I drastically shrinked the override file.
But now the "Advanced mate menu" object does not get added.
Please is there a way in which I would say: take whatever is on the panel by default and add this one more object? Here it is called object-0.
Thank you,
Vojta
Beta Was this translation helpful? Give feedback.
All reactions