maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 7 / Leste (https://talk.maemo.org/forumdisplay.php?f=66)
-   -   Icon for sh-script (https://talk.maemo.org/showthread.php?t=101502)

teroyk 2024-11-11 21:18

Icon for sh-script
 
Is there way to make icon for your own bash-script?

Arno_11 2024-11-12 14:58

Re: Icon for sh-script
 
Yes of course, you have just to create .desktop file in:
/usr/share/applications/hildon/

You can use other .desktop files as a model with:
[Desktop Entry]
Name=name_of_the_script
GenericName=name_of_the_script
Exec=/path/to/your_script.sh
Icon=/path/to/icon
Terminal=true
Type=Application
X-Osso-Type=application/x-executable

That's it.

sicelo 2024-11-13 07:22

Re: Icon for sh-script
 
Depending on your actual need, there's also https://maedevu.maemo.org/pkgweb/beo...-cmd-exec.html, which gives you a widget that can run and display the output of your script

Arno_11 2024-11-13 15:27

Re: Icon for sh-script
 
Yes, Desktop Command Execution widget is particulary useful to monitor things. I personally use it to monitor max and min cpu freq, free memory and RAM, battery current draw (and detecting charge), battery temp...you can execute the script by clicking on the screen or execute it every x seconds, minutes or hours.

Btw, you can use icons for scripts to control / adjust volume during calls (as it is not yet implemented in Leste), or adjust brightness in the dark, or adjust cpu freqs by hand and more. ( Desktop Cmd Exec widget can be used as well)


All times are GMT. The time now is 20:46.

vBulletin® Version 3.8.8