Vroni wrote:
> Hi guys,
> 
> I have this really dumb problem, but I canĀ“t get my head around it. My 
> program should do the following:
> 
> - When a button is pressed, a specific playlist[m3u]-file should be 
> opened in the media player.
> 
> Sure, the first part is to add a callback for the buttons, but how do I 
> open the file (and with it the media player. It should do the same as a 
> double click on the file would)?
> Is it even possible to do do it this way?

In a terminal, you'd do:
  $ xdg-open /path/to/playlist.m3u

In your callback you'd probably want to use system() or g_spawn_async(), 
see the man pages and
http://www.gtk.org/api/2.6/glib/glib-Spawning-Processes.html

tom
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to