maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N800 (https://talk.maemo.org/forumdisplay.php?f=25)
-   -   Starting FM_Radio without... (https://talk.maemo.org/showthread.php?t=9874)

frasej 2007-09-19 16:05

Starting FM_Radio without...
 
I don't listen to the radio often, but once in awhile, I do. So, I really didn't want the FM_Radio applet taking up space on my desktop just for the few times I actually use it. What I did was create a .desktop file, using vi, in "/usr/share/applications/hildon" .
I called the file "radio.desktop" and this is what it contains:
Code:

[Desktop Entry]
Encoding=UTF-8
Version=0.1
Type=Application
Name=FM_Radio
Exec=/usr/bin/fmradio
Comment=radio_application
X-HildonDesk-ShowInToolbar=true

This creates a menu item in Extras called FM_Radio. When clicked, it launches the fm_radio configuration, from which, I start listening to any of the stations listed. I can then minimize (sorry for the Windoze term) the application and continue doing other things.

Problem solved. This was probably pretty obvious the the Linux gurus here, but I thought I'd post it for those that aren't that familiar with it. And thanks to this article: http://www.internettablettalk.com/wi...e_program_menu

TA-t3 2007-09-20 13:58

Re: Starting FM_Radio without...
 
Good idea, useful information. Thanks for posting!
Cheers

str 2007-09-20 18:22

Re: Starting FM_Radio without...
 
and what about stopping the radio? If I have the applet in my desktop, run the application as you said, start listening to a radio station, and then close it.. it will keep the radio.

frasej 2007-09-20 21:55

Re: Starting FM_Radio without...
 
The whole point of this was to not have the applet on the desktop, thus closing the application, stops the radio. There is also a menu item to stop it.

kudos1uk 2007-09-21 08:38

Re: Starting FM_Radio without...
 
Quote:

Originally Posted by frasej (Post 76443)
This was probably pretty obvious the the Linux gurus here, but I thought I'd post it for those that aren't that familiar with it.

I would love to loose that app from my desktop but I'm even a bit lost by what you wrote (your a Linux guru to me :o ), any chance you could do a bit of a step by step. I know my way around terminal and commands so no problem there.

What I'm a bit lost with is what is a .desktop file and how to create it

Quote:

Originally Posted by frasej (Post 76443)
What I did was create a .desktop file in "/usr/share/applications/hildon" and copied it to "/etc/others-menu".


ichmoimeyo 2007-09-21 10:20

Re: Starting FM_Radio without...
 
Quote:

Originally Posted by frasej (Post 76443)
...So, I really didn't want the FM_Radio applet taking up space on my desktop just for the few times I actually use it. What I did was create a .desktop file in ...

Another way of achieving this is:
1) Install the osso-statusbar-cpu plugin.
[you will already have it under 'installable' applications in the application manager if you installed XTerm from maemo-hackers]
2) add a 'new' command:
Similar to last screenshot in above url: on statusbar click on newly installed 'clock-osso-statusbar-cpu' plugin / Settings / Commands / New and enter:
Description: fmradio
Command: fmradio

To open fmradio just click on the new command in the drop-down list.
You can also easily run other programs this way.

PS
i. above probably needs prior installation of the fmradio applet.
ii. I miss having access to the station drop-down running fmradio this way.
iii. ALWAYS check the audio level on the 'Sound' plugin on the STATUS bar, especially after switching between headset and loudspeaker output; unfortunately fmradio without fail reduces the volume :(

free 2007-09-21 10:50

Re: Starting FM_Radio without...
 
It follows freedesktop standards:

http://standards.freedesktop.org/men....0/apcs03.html

It may be long to read but this website covers all available options
Works in all window managers that follow this standard: kdm, gnome,..

frasej 2007-09-21 16:52

Re: Starting FM_Radio without...
 
"What I'm a bit lost with is what is a .desktop file and how to create it"

No problem, kudos1uk. A .desktop file is one that defines items in the menus (it probably does other things as well). Just go to the "/usr/share/applications/hildon" directory and have a look at the contents of some of the others there, using more. I used vi to edit the file. As soon as you finish editing the file, it will show up in the Extras menu.

btw you don't need to copy it to the /etc/others-menu folder. That was an unnecessary step, and I'll remove it.


All times are GMT. The time now is 06:09.

vBulletin® Version 3.8.8