Thinstation / thinstation

A framework for making thin and light Linux based images for x86 based machines and thinclients.
https://www.thinstation.net/
788 stars 188 forks source link

What is the format of the IceWM menu file content? #714

Closed AlexanderZhirov closed 2 years ago

AlexanderZhirov commented 2 years ago

In the icewm file.functions it is possible to add your own menu for IceWM. Through the global constants MENU_EXTRA and MENU_EXTRA_DIR, it is possible to specify the directory with the menu file. Only in what format to specify the contents of the file - I did not understand.

I can't add new menu items in this format:

MENU_EXTRA=only
MENU_EXTRA_DIR="/etc/icewm/menu_dir"

file menu in /etc/icewm/menu_dir/

~# cat /etc/icewm/menu_dir/menu
"Удаленный рабочий стол" "mstsc" mstsc
"Midnight Commander" "mc" mc

изображение

~# cat /root/.icewm/menu 
prog "" "" 
prog "" "" 
menu Resolution resolution_menu {
prog "1280x1024" "1280x1024" setres 1280x1024
}
menu Logout logout_menu {
prog "Shutdown" "shutdown" poweroff
prog "Reboot" "reboot" reboot
}
AlexanderZhirov commented 2 years ago

UPD

The same goes for idesk. How to add programs and menu items correctly. Something is not clear at all.

Thinstation commented 2 years ago

All that stuff is ancient.

On Sun, Apr 24, 2022 at 1:23 PM Alexander Zhirov @.***> wrote:

UPD

The same goes for idesk. How to add programs and menu items correctly. Something is not clear at all.

— Reply to this email directly, view it on GitHub https://github.com/Thinstation/thinstation/issues/714#issuecomment-1107911926, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVW47QMTZUAXBXDWEZ2VODVGWUSDANCNFSM5UGWBHJQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

Doncuppjr commented 2 years ago

Look at /lib/menu

Sent from Yahoo Mail for iPhone

On Sunday, April 24, 2022, 1:22 PM, Alexander Zhirov @.***> wrote:

UPD

The same goes for idesk. How to add programs and menu items correctly. Something is not clear at all.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

AlexanderZhirov commented 2 years ago

Look at /lib/menu

Yes, it was necessary to create files with the configuration of the menu item in /lib/menu (in packages). Everything worked out! Thanks!