GNOME Bugzilla – Bug 652749
always the same first file played in shuffle mode when passing path to totem
Last modified: 2014-01-23 12:20:14 UTC
== Downstream bug report from Ubuntu == "Totem is in random mode, I launch totem from the shell : $ totem /some/dir the first file played is always the first file in the directory (first in alphabetic order). next files are properly played in a random order." Extra info: Random mode is 'Shuffle Mode' in English. Accessed from Edit menu. More info at - https://bugs.launchpad.net/ubuntu/+source/totem/+bug/792615
That's because of the way the tracks are shuffled in totem-playlist. See ensure_shuffled() where we try to keep the currently playing video as the first in the list. That obviously doesn't work so well if we do that on startup.
This is now fixed in Totem master (for GNOME 3.12), we have a "shuffle" button when playing selected files.