si quelqu'un a besoin . . .
#! /bin/sh
# A small script to enqueue media files in vlc
# Edit by zydar
# According to the original script (totem) of: Thura and Deepak John
is_player_present=$(ps -e | grep vlc)
walk()
{
for file in "$1"/*
do
if [ -d "$file" ];then
walk "$file"
else
if [ -n "$is_player_present" ];then
vlc --started-from-file --playlist-enqueue "$file"
else
vlc "$file"
fi
fi
done
}
if [ -d "$arg" ];then
walk "$arg"
else
if [ -n "$is_player_present" ];then
vlc --started-from-file --playlist-enqueue "$@"
else
vlc "$@"
fi
fi
Je n'ai fais que changer la ligne qui était pour totem en ligne spécial vlc