2

Challenge: Creating 7 different shortcuts for audio streams like this one:

http://live-icy.gss.dr.dk/A/A03H.mp3.m3u

A few years back when I searched for a way to do this in windows it took me a bout 8 minutes to google and set up in VLC using this method:

https://forum.videolan.org/viewtopic.php?t=48172

I'm now three hours into Google and I haven't found a way to do it on Ubuntu Gnome. Slightly desperate here.

Tried creating a shortcut for vlc by both dragging the app with alt down (create link), but that didn't give me permission to launch. Root is probably owner, I'm guessing. Even though I created the shortcut as a user.

Then I tried this:

gnome-desktop-item-edit --create-new ~/Skrivebord

(/Desktop but in Danish)

This created the shortcut to VLC, but I can't edit the url that I need to stream automatically once launced (and seriously, why do I need to know code to create a shortcut?? Oh well, never mind that for now).

I only need the final step - starting the web stream. How do I put in the url - if possible - in each shortcut so that the stream starts automatically?

And one last thing - it honestly doesn't need to be vlc. That was just what worked on Windows, but if there's another lightweight audio player more suited, I'm all ears.

Cheers, and thanks in advance!

1 Answers1

1

There is something basic missing here, .m3u format itself is a list of shortcuts/URL's. No need going in such long way.

  • Right click on that link and save as copy of A03H.mp3.m3u file.

    If the streaming URL doesn't have known extension. Copy its URL, paste it in a text file and save it with .m3u file extension.

Just click on it, and it will start straightaway playing with default player.

If you want more control like play with different player than default, Use launchers (.desktop files)

  • It is a text file, here format info: How do I add a custom launcher?
  • Change important line similar to: Exec=<player> <streaming-URL>

    For default player: Exec=xdg-open <streaming-URL>

References:

user.dz
  • 49,176