Sujet : Re: Can Tcl/Tk be used to create Xfce panel apps?
De : gregor.ebbing (at) *nospam* gmx.de (greg)
Groupes : comp.lang.tclDate : 11. Jul 2024, 11:19:58
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v6obke$2dlc7$2@dont-email.me>
References : 1
User-Agent : Mozilla Thunderbird
Am 10.07.24 um 12:00 schrieb Mark Summerfield:
I'd quite like to create a panel app for the Xfce panel. (I know that Tcl/
Tk can create systray apps, but I want a panel button like "Launcher")
Hello,
(if I understood your question correctly)
Instructions for Creating a Tcl/Tk Panel Application for the Xfce Panel
Program Name: xfce_panel_app.tcl
(this name is not a default)
1.
Make the script executable:
chmod +x xfce_panel_app.tcl
2.
Script Directory:
The script should be placed in a directory. An example directory could be:
~/programs/panel_app
3.
Create the Desktop Entry:
In the directory ~/.local/share/applications/ (default)
or /usr/share/applications/ (for system-wide availability),
Create a text file with the .desktop extension.
The file name could be xfce_panel_app.desktop.
The content of the file should be as follows:
[Desktop Entry]
Version=1.0
Type=Application
Name=xfce panel app
Comment=Tcl/Tk Panel App
Exec=/home/greg/programs/panel_app/xfce_panel_app.tcl
Icon=utilities-terminal
Terminal=false
Categories=Utility;
StartupNotify=false
4.
Completion:
The application can now be found in the user menu under Utility.
5.
Adding to the Panel:
Right-click on the panel.
Select "Add New Items".
Choose "Launcher".
Configure the new launcher by selecting the previously created desktop entry.
further information:
https://wiki.archlinux.org/title/desktop_entriesor
entry desktop xfce
or
/usr/share/applications
or
man exo-desktop-item-edit
cd ~/.local/share/applications/
exo-desktop-item-edit xfce_panel_app.tcl
best regards
Gregor