SliTaz SliTaz Forum

You are not logged in.

#1 2015-04-03 14:51:37

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

Start item for console app's and app's with adaptable start options

Hi

I often use console app's being offered by SliTaz, for ex. sc, the venerable spreadsheet, or alpine, needing to start in a terminal like Sakura (and would wish a friendly background in the terminal, some pastel color for example). And I use Seamonkey only for the part "WYSYG HTML editor"; to avoid to commute to it after the start, it would be much better to have a direct entry in the menu for it. My search action in the doc.slitaz.org were success less (for those two specific actions! I did find somewhat for Enlightment or JWM, but actually SliTaz 5.0 uses an other combination...).

How to do that?

Kind regards

Offline

#2 2015-04-03 19:05:15

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

Re: Start item for console app's and app's with adaptable start options

Hi oui,

[c]$ cp /usr/share/applications/seamonkey.desktop .local/share/applications/seamonkey-composer.desktop[/c]

then

[c]$ nano .local/share/applications/seamonkey-composer.desktop[/c]

and append [c]-edit[/c] to the [c]Exec=[/c] line. Change the [c]Icon=[/c] to [c]/usr/lib/seamonkey/chrome/icons/default/editorWindow48.png[/c].

Now, I don't know how one refreshes the menu. (I use the desktop file for a launcher in the panel, not for adding items to the menu.)

Offline

#3 2015-04-03 19:06:57

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

Re: Start item for console app's and app's with adaptable start options

As for sakura's background, right-click on it (sakura's background) > Choix des couleurs (I bet you are french-speaking like me!).

Offline

#4 2015-04-03 19:10:05

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: Start item for console app's and app's with adaptable start options

Copy/paste/save to text file named composer.desktop

[c]# cp composer.desktop /usr/share/applications[/c]

Applications/Development/Composer

[Desktop Entry]

Encoding=UTF-8

Name=Composer

Name[fr]=Navigateur Web Seamonkey

Name[pt]=Navegador web Seamonkey

Name[pt_BR]=Navegador web Seamonkey

Comment=wysiwyg editor

Exec=seamonkey -edit

Icon=seamonkey

Type=Application

Categories=Development;WebDevelopment;Network;

Offline

#5 2015-04-03 20:06:32

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

Re: Start item for console app's and app's with adaptable start options

merci beaucoup pour composer! sc?

Offline

#6 2015-04-04 07:56:17

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

Re: Start item for console app's and app's with adaptable start options

Hi

for SC (or other console app's), file ~/.local/share/applications/sc.desktop (check if subdir ~/.local/share/applications/ is already available!):

[Desktop Entry]

Type=Application

Name=SC

Name[fr]=Tableur SC

Name[pt]=

Name[pt_BR]=

Name[ru]=

Comment=

Comment[fr]=tableur

Comment[ru]=

Exec=terminal -e sc

Icon=gnumeric

Categories=Office;

Color adaptation in sc: I didn't find some way...

Offline

#7 2015-04-04 08:20:18

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

Re: Start item for console app's and app's with adaptable start options

Have a look at the manual: http://pwet.fr/man/linux/commandes/sc

It seems you have to issue "set color" then some color commands are available (there's a dedicated section in the manual). You can put those commands in a file ~/.scrc .

Offline

#8 2015-04-04 08:46:13

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: Start item for console app's and app's with adaptable start options

Hi mojo,

Categories=Development;WebDevelopment;Network;

Application will appear both in the two main menu categories: under Development and under Network. So, maybe, better to remove "Network;" from end.

Also, to check handmade icons:

[c]desktop-file-validate /usr/share/applications/your-file.desktop[/c]

It validates file and shows you errors and warnings:

tux@slitaz:~$ desktop-file-validate /home/tux/Desktop/composer.desktop

/home/tux/Desktop/composer.desktop: warning: key "Encoding" in group "Desktop Entry" is deprecated

/home/tux/Desktop/composer.desktop: hint: value "Development;WebDevelopment;Network;" for key "Categories" in group "Desktop Entry" contains more than one main category; application might appear more than once in the application menu

Offline

#9 2015-04-04 12:16:15

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: Start item for console app's and app's with adaptable start options

Hi Aleksej,

You are right.

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, 8 queries executed - Memory usage: 1.55 MiB (Peak: 1.77 MiB) ]