SliTaz SliTaz Forum

You are not logged in.

#1 2015-12-26 09:01:34

oui
Member
Registered: 2012-09-05
Posts: 298

CLI app in menu and icon on desk

Hi

I use relatively rarely a spreadsheet. SC is definitively enough for me. And I would like to find it in the menu under the submenu "Office" and after that to be able to make hit right mouse key to the choice "Add to the desktop"

How to do that step-by-step (as it was done for f. ex. "alsamixer")

Offline

#2 2015-12-26 20:03:24

llev
Member
Registered: 2011-12-09
Posts: 568

Re: CLI app in menu and icon on desk

You have to create what's called a ".desktop file". The system ones are in /usr/share/applications, you can open one in your favourite editor to see what it looks like, or search the web.

Then you can write your own, name it as you wish, and put it in [c]~/.local/share/applications[/c]. I think the menu should be auto-refreshed, but you can always restart the panel ([c]lxpanelctl restart[/c]).

Edit: if you don't really care about the menu entry you can put the .desktop file directly into [c]~/Desktop[/c].

Offline

#3 2015-12-27 10:21:46

oui
Member
Registered: 2012-09-05
Posts: 298

Re: CLI app in menu and icon on desk

thank you llev!

an other question: is the "sudo" setting for applications this way possible? what is to do?

Offline

#4 2015-12-27 12:10:06

llev
Member
Registered: 2011-12-09
Posts: 568

Re: CLI app in menu and icon on desk

Try adding [c]subox[/c] to the Exec line: [c]subox /path/to/my_app[/c].

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.016 seconds, 7 queries executed - Memory usage: 1.53 MiB (Peak: 1.77 MiB) ]