Tiny Core Linux

Tiny Core Extensions => TCE Bugs => Topic started by: Juanito on May 13, 2012, 12:59:19 PM

Title: tumbler startup script
Post by: Juanito on May 13, 2012, 12:59:19 PM
Would it possible to add a startup script to the tumbler extension - something like:
Code: [Select]
$ cat /usr/local/tce.installed/tumbler
#!/bin/sh

read USER < /etc/sysconfig/tcuser

if [ ! -d /home/"$USER"/.thumbnails/normal ]; then
  mkdir -p /home/"$USER"/.thumbnails/normal
  chown -R "$USER":staff /home/"$USER"/.thumbnails/normal
fi

..tumbler won't start without this in some circumstances
Title: Re: tumbler startup script
Post by: bmarkus on May 13, 2012, 01:09:02 PM
I see, tumbler need ~/.thumbnails. I will add it to the Xfce4 startup which creates the proper running environment. As tumbler is part of Xfce4 I do not want to introduce a new startup script.
Title: Re: tumbler startup script
Post by: Juanito on May 13, 2012, 01:21:26 PM
Well OK, but I'm using it without Xfce4...
Title: Re: tumbler startup script
Post by: bmarkus on May 13, 2012, 02:05:53 PM
Well OK, but I'm using it without Xfce4...

In this case I will add the startup script, no problem.

How are you using tumbler?
Title: Re: tumbler startup script
Post by: Juanito on May 13, 2012, 11:11:44 PM
How are you using tumbler?

With rygel - it starts tumbler if found (and if the folder mentioned earlier is present).
Title: Re: tumbler startup script
Post by: bmarkus on May 14, 2012, 05:41:49 AM
Startup script added, extension submitted.

P.S: Didn't check script, just copied from your post :)
Title: Re: tumbler startup script
Post by: Juanito on May 15, 2012, 01:02:08 PM
Thanks - rygel now streams thumbnails..

..although two different renderers only show the image thumbnails and not the video ones
Title: Re: tumbler startup script
Post by: bmarkus on May 15, 2012, 06:03:30 PM
Thanks - rygel now streams thumbnails..

..although two different renderers only show the image thumbnails and not the video ones

Installing gst-plugins-base.tcz gst-plugins-good.tcz gst-plugins-bad.tcz it works. Will update .dep
Title: Re: tumbler startup script
Post by: Juanito on May 15, 2012, 11:24:09 PM
I didn't meant to indicate that there was a problem with tumbler - the video thumbnails have been created in ~/.thumbnails - but rather that there's a problem with either rygel or the media renderer
Title: Re: tumbler startup script
Post by: bmarkus on May 16, 2012, 03:43:49 AM
gst plugins are soft depenedencies and not listed in tumbler.tcz.dep therefore using a clean Xfce4 install no thumbs for video files. I will add a note to the info file. I'm still hasitating to add gst plugins to .dep or not. Functionality is nice, but adds a significant overhead forcing installation always for those are not playing video.
Title: Re: tumbler startup script
Post by: Juanito on May 16, 2012, 04:08:48 AM
I'd leave the gst plugins dep out and make a note in the info file

In many cases I'd expect the user would need to load the gst plugins in order to play the video anyway..