You are not logged in.
Hello.
Can someone help me. Is there a way to add app shortcuts to the top panel through the terminal?
Offline
Hello and welcome.
Here is a series of steps that can be run from the command line that will add a launcher to a panel.
Add a launcher to the panel:
xfce4-panel --add=launcher
(Note: if more than one panel, you will be graphically prompted for which panel to add to)
.
Get the new plugin ID:
xfconf-query -c xfce4-panel -p /panels/panel-1/plugin-ids | tail -1
(Note: you need to substitute "panel-1" with the panel name/number that you are adding to)
.
Create the launcher directory:
mkdir ~/.config/xfce4/panel/launcher-14
(Note: you need to substitute the "14" with the number of the launcher from the previous step)
.
Copy in the desktop file of the app you want the launcher for:
cp /usr/share/applications/gimp.desktop ~/.config/xfce4/panel/launcher-14/
(Note: you need to substitute the "14" with the number of the launcher from step 2)
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
Offline
I'm not sure I understand. Do you mean you want to add firefox, terminal and thunar launchers to the panel? I so, you can follow the above instructions 3 times - one for each app. Note though that there is no easy or existing way to programmatically move panel plugins around the panel from a terminal window.
Perhaps it might be better if you tried to explain what you are trying to accomplish? Why do you want to do this from a terminal? Why not just use the graphical tools to do it?
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
I reassemble for myself squashfs.filesystem through squashfs-tools and there is no graphical interface. I know how to do this on cinnamon but I do not know how to xfce. The command xfce4-panel --add=launcher causes the graphics window to open.
Offline
he command xfce4-panel --add=launcher causes the graphics window to open.
Yes, if you have more than one panel. It needs to know which panel to target.
Are you trying to create a default setup of some sort? If so, there are better and easier ways to do this. Looks at the default panel file in /etc/xdg/xfce4/panel - perhaps you can just modify that. All new users will get that setup.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
Can I somehow specify the panel number in the command?
Offline
Can I somehow specify the panel number in the command?
Unfortunately no. It's not supported.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
The terminal commands listed by you add a launcher to the end of the top panel, which I do not like. The same thing can be done even faster simply by typing:
xfce4-panel --add=launcher gimp.desktop
Such a popular DE, but commands for the terminal can not be found. Even if the moderator does not know how to do this, then what to say about ordinary users.
Last edited by Starrdust (2017-07-23 10:36:57)
Offline
The terminal commands listed by you add a launcher to the end of the top panel, which I do not like. The same thing can be done even faster simply by typing:
xfce4-panel --add=launcher gimp.desktop
Good to know. Thank you for sharing.
Such a popular DE, but commands for the terminal can not be found. Even if the moderator does not know how to do this, then what to say about ordinary users.
Moderators are not infallible. Feel free to create an enhancement request at the bug tracker and also feel free to contribute the code to make this enhancement happen.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
[ Generated in 0.015 seconds, 7 queries executed - Memory usage: 561 KiB (Peak: 577.84 KiB) ]