Como agregar acciones al menú secundario del Dolphin

KDE, Gnome, XFCE, E17, compiz, tuning del escritorio y mas aqui.

Moderador: frank

Responder
Avatar de Usuario
BishopWolf
Mensajes: 145
Registrado: Vie, 14 Ene 2011, 11:49
Ubicación: /home/San José de las Lajas

Como agregar acciones al menú secundario del Dolphin

Mensaje por BishopWolf » Mar, 07 Ene 2014, 12:23

Alguien por favor que me publique esto en GUTL:

Hola amigos, hace poco necesité agregar una acción al menú secundario del Dolphin, para esto contaba con un script hecho por Bosito7 que permite hacer una conversión de videos a formatos compatibles con reproductores como DVD, PSP, etc al que mejoré un poquito para que aprovechara el multiprocesamiento de las computadoras modernas, lo que lo hace ultrarrápido.

Este es el script de Bosito7 modificado, guardarlo como ~/GUTL_Video_Converter y darle permisos de ejecución, si lo guarda en otro lado y con otro nombre deberá editar la línea correspondiente más adelante.

Código: Seleccionar todo

#!/bin/bash
################################################################################
# Este Script para nautilus permite trancodificar videos a diferentes formatos #
# usando ffmpeg-avconv y mencoder.                                             #  
# Tadas las opciones han sido probadas satisfactoriamente en Debian 7 (Wheezy) #
#									       #		
# autor: Francisco Perdigon Romero (bosito7)				       #
# mail: bosito7@gmail.com , co8cv@frcuba.co.cu				       #
# WEB:  http://gutl.jovenclub.cu 					       #
#									       #
# requerimientos: ffmpeg, mencoder, zenity				       #
# Si no tiene instalados estos paquetes escriba en consola                     #
# sudo apt-get install mencoder mplayer ffmpeg zenity                          #
#                                                                              #
# Liberado bajo licencia LGPL v2                                               #
#                                                                              #
################################################################################

# Chequear el software requerido...
avconv_bin=`which avconv | grep -c "avconv"`
avconv_xvid=`avconv -formats | grep -c "xvid"`
avconv_aac=`avconv -formats | grep -c "aac"`
avconv_mp3=`avconv -formats | grep -c "mp3"`
mencoder_bin=`which mencoder | grep -c "mencoder"`

# Chequear la cantidad de cpus que tenemos (por Alex Vergara Gil)
numcpus=`cat /proc/cpuinfo | grep "cpu cores" -m 1 | awk '{print $4}'`

# Chequear avconv
if [ $avconv_bin -eq "0" ]; then
zenity --error --title="Error - Software no encontrado" \
 --text="Usted no tiene instalado avconv.
Por favor instalelo para poder usar este script. 
Este seguro de que tiene bien configurado los repositorios y entonces
escriba en un terminal: 'sudo apt-get install libav-tools' ."
exit
fi

#Chequear mencoder
if [ $mencoder_bin -eq "0" ]; then
zenity --error --title="Error - Software no encontrado" \
 --text="Usted no tiene instalado mencoder.
Por favor instalelo para poder usar este script. 
Este seguro de que tiene bien configurado los repositorios y entonces
escriba en un terminal: 'sudo apt-get install mplayer mencoder' ."
exit
fi

# Chequear soporte XVID
# Aqui se codificara XVID utilizando mencoder
if [ $mencoder_bin -eq "0" ]; then
	echo "No esta instalado mencoder no se puede codificar XVID"
   else
	xvid_select=`echo 'FALSE XVID AVI-XVID'`
	echo "XVID presente"
fi
# Chequear soporte aac (iPod & PSP)
if [ $avconv_aac -eq "0" ]; then
	echo "AAC no soportado en ffmeg"
   else
	ipod_select=`echo 'FALSE IPOD IPOD-Video'`
	psp_select=`echo 'FALSE PSP PSP-Video'`
	echo "AAC presente en ffmeg"
fi

#Check for mp3 support
if [ $avconv_mp3 -eq "0" ]; then
	echo "mp3 no soportado en ffmeg"
   else
	echo "mp3 spresente en ffmeg"
fi

#Se ha seleccionado un archivo?
if [ $# -eq 0 ]; then
	zenity --error --title="error" --text="Usted debe seleccionar al menos un archivo"
	exit 1
fi


video_in_type="ASF"
valid_video_type="1"


#Seleccionar formato de salida 

title="Seleccione el formato de salida que tendra el archivo"
video_out_type=`zenity  --width="480" --height="380" --title="$title" --list --radiolist --column="" \
	--column="Formato" --column="Descripcion" \
	TRUE "DVD" "DVD Video utilizando flujo MPEG"\
	FALSE "MPEG4" "Crea un archivo AVI codificado con MPEG4"\
	FALSE "SVCD" "Crea un archivo NTSC/PAL SVCD"\
	FALSE "VCD" "Crea un archivo NTSC/PAL VCD" \
	FALSE "FLV" "Crea un archivo FLASH-Video" \
	$xvid_select \
	$ipod_select \
	$psp_select \
	FALSE "IPHONE" "IPHONE, IPOD TOUCH" \
	FALSE "MP3" "Crea un archivo de audio a partir del video" \
		
	 | sed 's/ max//g' `

echo "$video_out_type es el formato de salida."

#El usuario debe seleccionar un formato
if [ ! "$video_out_type" ]; then
	zenity --error --title="Error" --text="Usted debe seleccionar un formato de salida."
	exit
fi

# Opciones para formato DVD
if [ "$video_out_type" = "DVD" ]; then
	
#Resolucion
	title="Seleccione la resolucion que tendra el video"
	dvd_res=`zenity --width="700" --height="480" --title="$title" --text="Input format: $humantype" --list --radiolist --column="" --column="Seleccione resolucion" --column "Descripcion" \
		TRUE "ntsc-dvd -s 720x480" "NTSC estandar"\
		FALSE "ntsc-dvd -s 720x400 -padtop 40 -padbottom 40" "NTSC estandar - Widescreen" \
		FALSE "ntsc-dvd -s 704x480" "" \
		FALSE "ntsc-dvd -s 704x396 -padtop 42 -padbottom 42" "NTSC estandar - Widescreen" \
		FALSE "ntsc-dvd -s 704x400 -padtop 40 -padbottom 40" "NTSC estandar - Widescreen" \
		FALSE "ntsc-dvd -s 352x480" "4:3 NTSC medio" \
		FALSE "ntsc-dvd -s 352x474 -padbottom 6" "4:3 NTSC medio, -padbottom" \
		FALSE "ntsc-dvd -s 352x240" "4:3 NTSC resolucion VCD" \
		FALSE "ntsc-dvd -s 352x196 -padtop 22 -padbottom 22" "NTSC resolucion VCD - Widescreen" \
		FALSE "ntsc-dvd -s 352x192 -padtop 24 -padbottom 24" "NTSC resolucion VCD - Widescreen" \
		FALSE "pal-dvd -s 720x576" "4:3 PAL completo" \
		FALSE "pal-dvd -s 704x576" "" \
		FALSE "pal-dvd -s 352x576" "4:3 PAL medio" \
		FALSE "pal-dvd -s 352x288" "4:3 PAL resolucion VCD" \
		
		 | sed 's/ max//g' `

	#PAL?
	if [ "${dvd_res##pal-dvd}" != "$dvd_res" ]; then
		video_out_type="DVD_PAL"
	fi

	#El usuario debe seleccionar el tamanno
	if [ ! "$dvd_res" ]; then
		zenity --error --title="Error" --text="Usted debe seleccionar una resolucion de salida. Se selecciono ntsc-dvd -s 720x480"
		dvd_res="ntsc-dvd -s 720x480"
	fi

	title="Seleccione Bitrate para audio"
	audio_br=`zenity  --width="480" --height="380" --title="$title" --list --radiolist --column="" \
	--column="Seleccione Bitrate" \
		FALSE "448k" \
		FALSE "356k" \
		FALSE "224k" \
		FALSE "192k" \
		FALSE "160k" \
		TRUE "128k" | sed 's/ max//g' `

	#El usuario debe seleccionar un bitrate de audio
	if [ ! "$audio_br" ]; then
		zenity --error --title="Error" --text="Ustede debe seleccionar un Bitrate para el audio. Se usara 128k"
		audio_br="128k"
	fi

	title="Seleccione el codec de audio"
	audio_str=`zenity  --width="480" --height="380" --title="$title" --list --radiolist --column="" --column="Seleccione el codec de audio" TRUE "ac3"  FALSE "mp2" | sed 's/ max//g' `

	#El usuario debe seleccionar el codec de audio
	if [ ! "$audio_str" ]; then
		zenity --error --title="Error" --text="Ustede debe seleccionar el codec de audio. Se usara ac3"
		audio_str="ac3"				
	fi
fi

#Opciones MPEG4
 
if [ "$video_out_type" = "MPEG4" ]; then
	title="Seleccione la calidad de salida"
	mpeg4_quality=`zenity  --width="700" --height="380" --title="$title" --list --radiolist --column="" \
	--column="Seleccione la calidad de salida" --column="Descripcion" \
		FALSE "Very_High_Quality" "Mejor calidad pero la codificacion es lenta, 6fps" \
		FALSE "High_Quality" "Codificacion es de 15fps" \
		TRUE "Fast_Encode" "Codificacion rapida, pero la calidad es menor" \
		
		 | sed 's/ max//g' `

		#En proyecto
		#FALSE "Three_Pass" "3 Pass Encode, MP3 VBR audio, Excellent Quality"\
	echo "mpeg4_quality: $mpeg4_quality"

	title="Seleccione la resolucion que tendra el video"
	mpeg4_resolution=`zenity  --width="520" --height="380" --title="$title" --list --radiolist --column="" \
	--column="Seleccione resolucion" --column="Decripcion" \
		FALSE "720:480" "NTSC DVD, 720x480"\
		FALSE "720:576" "PAL DVD 720x576"\
		TRUE "640:480" "Tamanno de TV normal, 640x480"\
		FALSE "352:576" "352x576 4:3 PAL medio"\
		FALSE "352:240" "NTSC VCD, 352x240"\
		FALSE "320:240" "NTSC VCD, 320x240"\
		FALSE "352:288" "PAL VCD, 352x288"\
		
		 | sed 's/ max//g' `

	#El usuario debe seleccionar el tamanno
	if [ ! "$mpeg4_resolution" ]; then
		zenity --error --title="Error" --text="Usted debe seleccionar una resolucion de salida. Se selecciono NTSC DVD, 720x480"
		mpeg4_resolutio="720:480"
	fi

	title="Seleccione Bitrate para video"
	mpeg4_vid_br=`zenity  --width="480" --height="380" --title="$title" --list --radiolist --column="" \
	--column="Seleccione Bitrate" \
		FALSE "1500" \
		FALSE "1300" \
		FALSE "1100" \
		TRUE "900" \
		FALSE "700" \
		FALSE "500" \
		
		 | sed 's/ max//g' `

	#El usuario debe seleccionar el bitrate
	if [ ! "$mpeg4_vid_br" ]; then
		zenity --error --title="Error" --text="Usted debe seleccionar el Bitrate de video. Se usara 900."
		mpeg4_vid_br="900"
	fi
fi

if [ "$video_out_type" = "XVID" ]; then
	
	title="Seleccione la resolucion que tendra el video"
	xvid_resolution=`zenity  --width="480" --height="380" --title="$title" --list --radiolist --column="" \
	--column="Seleccione resolucion..." --column="Descripcion" \
		FALSE "720:480" "NTSC DVD , 720x480"\
		FALSE "720:576" "PAL DVD 720x576"\
		TRUE "640:480" "Tamanno de TV normal, 640x480"\
		FALSE "352:576" "352x576 4:3 half pal"\
		FALSE "352:240" "NTSC VCD, 352x240"\
		FALSE "320:240" "NTSC VCD, 320x240"\
		FALSE "352:288" "PAL VCD, 352x288"\
		
		 | sed 's/ max//g' `

	#El usuario debe seleccionar el tamanno
	if [ ! "$xvid_resolution" ]; then
		zenity --error --title="Error" --text="Usted debe seleccionar una resolucion de salida. Se selecciono NTSC DVD, 720x480"
		xvid_resolution="720:480"
	fi

	title="Seleccione Bitrate para video"
	xvid_vid_br=`zenity  --width="480" --height="380" --title="$title" --list --radiolist --column="" \
	--column="Seleccione Bitrate" \
		FALSE "1500" \
		FALSE "1300" \
		FALSE "1100" \
		TRUE "900" \
		FALSE "700" \
		FALSE "500" \
		
		 | sed 's/ max//g' `

	#user must select a Video bitrate
	if [ ! "$xvid_vid_br" ]; then
		zenity --error --title="Error" --text="Usted debe seleccionar el Bitrate de video. Se usara 900."
		xvid_vid_br="900"
	fi
fi

# flash options
if [ "$video_out_type" = "FLV" ]; then	

	title="Selecione la resolucion que tendra el video"
	flv_size=`zenity  --width="480" --height="380" --title="$title" --list --radiolist --column="" \
	--column="Seleccione resolucion" \
		FALSE "400x300" \
		TRUE "320x240" \
		FALSE "160x120" 
		
		 | sed 's/ max//g' `

	title="Seleccione Bitrate para video"
	flv_br=`zenity  --width="480" --height="380" --title="$title" --list --radiolist --column="" \
	--column="Seleccione Bitrate" \
		TRUE "500k" \
		FALSE "300k" \
		FALSE "200k" \
		FALSE "100k" 
		
		 | sed 's/ max//g' `
fi

#SVCD Options
if [ "$video_out_type" = "SVCD" ]; then
	title="Seleccione region"
	video_out_type=`zenity  --width="480" --height="380" --title="$title" --list --radiolist --column="" \
	--column="NTSC o PAL?" \
		TRUE "SVCD_NTSC" \
		FALSE "SVCD_PAL" \
		
		 | sed 's/ max//g' `
fi

#VCD Options
if [ "$video_out_type" = "VCD" ]; then	
	title="Seleccione region"
	video_out_type=`zenity  --width="480" --height="380" --title="$title" --list --radiolist --column="" \
	--column="NTSC o PAL?" \
		TRUE "VCD_NTSC" \
		FALSE "VCD_PAL" \
		 
		 | sed 's/ max//g' `
fi

#Video Encoding Functions...
flv_encode ()
{
	avconv -i "$movie" -s $flv_size -b $flv_br -ar 44100 "$flv_file"
}
dvd_encode_ntsc ()
{
	avconv -i "$movie" -target $dvd_res -r 29.97 -aspect 4:3 -ab $audio_br -ar 48000 -ac 2 -acodec $audio_str -y "$mpg_file"
}
dvd_encode_pal ()
{
	avconv -i "$movie" -target $dvd_res -r 25 -aspect 4:3 -ab $audio_br -ar 48000 -ac 2 -acodec $audio_str -y "$mpg_file"

}

encode_ipod ()
{	
	avconv -i "$movie" -f ipod -vcodec mpeg4 -aspect 4:3 -s 320x240 -b 700k -mbd 2 -cmp 2 -subcmp 2 -r 30000/1001 -acodec aac -strict experimental -ar 24000 -ab 128k -y "$movie"_IPOD.mp4
}

encode_iphone ()
{
	#La siguiente linea de comando fue un aporte del colega Z3R0de GUTL, no funciona si mplayes no esta compilado con libfaac
	#mencoder "$movie" -v -noskip -mc 0 -vfm ffmpeg -vf scale=480:320,harddup -oac faac -faacopts br=128:mpeg=4:object=2:raw -ovc lavc -lavcopts vglobal=1:vcodec=mpeg4:vbitrate=700:autoaspect:aglobal=1 -of lavf -lavfopts format=ipod -o "$movie"_iphone.mp4
	
	#Para resolver el problema anterior se propone la siguiente linea la cual debe ser probada
	avconv -i "$movie" -f ipod -vcodec mpeg4 -aspect 16:9 -s 480x320 -b 700k -mbd 2 -cmp 2 -subcmp 2 -r 30000/1001 -acodec aac -strict experimental -ar 24000 -ab 128k -y "$movie"_IPHONE.mp4
	
}	

encode_psp ()
{
	avconv -i "$movie" -f psp -vcodec mpeg4 -aspect 16:9 -s 368x208 -b 768k -mbd 2 -cmp 2 -subcmp 2 -r 30000/1001 -acodec aac -strict experimental -ar 24000 -ab 128k -y "$movie"_PSP.mp4	
	
avconv -i "$movie" -f image2 -ss 10 -vframes 1 -s 160x120 -y "$movie"_PSP.THM 
}

svcd_encode_ntsc ()
{
	avconv -i "$movie" -target ntsc-svcd -aspect 4:3 -y "$mpg_file"
}

svcd_encode_pal ()
{
	avconv -i "$movie" -target pal-svcd -aspect 4:3 -y "$mpg_file"
}

vcd_encode_ntsc ()
{
	avconv -i "$movie" -target ntsc-vcd -aspect 4:3 -y "$mpg_file"
}

vcd_encode_pal ()
{
	avconv -i "$movie" -target pal-vcd -aspect 4:3 -y "$mpg_file"
}

mpeg4_encode ()
{
	#Revisar como hacer
	# Le agregue la opción de multihilos (por Alex Vergara Gil)
	if [ "$mpeg4_quality" = "Three_Pass" ]; then
		echo "# Converting $movie to MPEG4 \n with 3 pass encode... \n Pass 1 of 3..." 
		mencoder "$movie" -ovc copy -oac mp3lame -lameopts vbr=3 -o frameno.avi
		echo "# Converting $movie to MPEG4 \n with 3 pass encode... \n Pass 2 of 3..." 
		mencoder "$movie" -oac copy -ovc lavc -lavcopts vcodec=mpeg4:threads=$numcpus:vpass=1:vbitrate=$mpeg4_vid_br -vf scale=$mpeg4_resolution -o "$mpeg4_file"
		echo "# Converting $movie to MPEG4 \n with 3 pass encode... \n Pass 3 of 3..." 
		mencoder "$movie" -oac copy -ovc lavc -lavcopts vcodec=mpeg4:threads=$numcpus:vpass=2:vbitrate=$mpeg4_vid_br -vf scale=$mpeg4_resolution -o "$mpeg4_file"
	rm frameno.avi
	rm divx2pass.log
	fi
	if [ "$mpeg4_quality" = "Very_High_Quality" ]; then
		echo "# Converting $movie to MPEG4 \n Using $mpeg4_quality setting..."
		mencoder "$movie" -ovc lavc -lavcopts vcodec=mpeg4:threads=$numcpus:vbitrate=$mpeg4_vid_br:mbd=2:mv0:trell:v4mv:cbp:last_pred=3:predia=2:dia=2:vmax_b_frames=2:vb_strategy=1:precmp=2:cmp=2:subcmp=2:preme=2:qns=2 -vf scale=$mpeg4_resolution -oac mp3lame -lameopts vbr=3 -o "$mpeg4_file"
		rm divx2pass.log
	fi
	if [ "$mpeg4_quality" = "High_Quality" ]; then
		echo "# Converting $movie to MPEG4 \n Using $mpeg4_quality setting..."
		mencoder "$movie" -ovc lavc -lavcopts vcodec=mpeg4:threads=$numcpus:vbitrate=$mpeg4_vid_br:mbd=2:trell:v4mv:last_pred=2:dia=-1:vmax_b_frames=2:vb_strategy=1:cmp=3:subcmp=3:precmp=0:vqcomp=0.6:turbo -vf scale=$mpeg4_resolution -oac mp3lame -lameopts vbr=3 -o "$mpeg4_file"
		rm divx2pass.log
	fi
	if [ "$mpeg4_quality" = "Fast_Encode" ]; then
		echo "# Converting $movie to MPEG4 \n Using $mpeg4_quality setting..."
		mencoder "$movie" -ovc lavc -lavcopts vcodec=mpeg4:threads=$numcpus:vbitrate=$mpeg4_vid_br:mbd=2:trell:v4mv:turbo -vf scale=$mpeg4_resolution -oac mp3lame -lameopts vbr=3 -o "$mpeg4_file"
		rm divx2pass.log
	fi
}	

xvid_encode ()
{
mencoder "$movie" -ovc xvid -xvidencopts pass=1 -xvidencopts bitrate=$xvid_vid_br -vf scale=$xvid_resolution -oac mp3lame -o "$xvid_file" 
rm divx2pass.log
}

extract_audio()
{
        mencoder "$movie" -of rawaudio -oac mp3lame -ovc copy -o "$movie"_AUDIO.mp3
}

if [ "$valid_video_type" = "1" ]; then
	Video_Count=1

	while [ $# -gt 0 ]; do
		movie=$1
		flv_file=`echo "$movie" | sed 's/\.\w*$/_FLV.flv/'`
		mpg_file=`echo "$movie" | sed 's/\.\w*$/_MPEG.mpg/'`
		mpeg4_file=`echo "$movie" | sed 's/\.\w*$/_MPEG4.avi/'`
		xvid_file=`echo "$movie" | sed 's/\.\w*$/_XVID.avi/'`
			echo "# Procesando $video_out_type \n Total: $Video_Count"
			if [ "$video_out_type" = "DVD" ]; then
				dvd_encode_ntsc
			fi
			if [ "$video_out_type" = "FLV" ]; then
				flv_encode
			fi
			if [ "$video_out_type" = "DVD_PAL" ]; then
				dvd_encode_pal
			fi
			if [ "$video_out_type" = "IPOD" ]; then
				encode_ipod
			fi
			if [ "$video_out_type" = "SVCD_NTSC" ]; then
				svcd_encode_ntsc
			fi
			if [ "$video_out_type" = "SVCD_PAL" ]; then
				svcd_encode_pal
			fi
			if [ "$video_out_type" = "VCD_NTSC" ]; then
				vcd_encode_ntsc
			fi
			if [ "$video_out_type" = "VCD_PAL" ]; then
				vcd_encode_pal
			fi
			if [ "$video_out_type" = "MPEG4" ]; then
				mpeg4_encode
			fi
			if [ "$video_out_type" = "PSP" ]; then
				encode_psp
			fi
                        if [ "$video_out_type" = "XVID" ]; then
                                xvid_encode
                        fi
                        if [ "$video_out_type" = "IPHONE" ]; then
                                encode_iphone
                        fi
                        if [ "$video_out_type" = "MP3" ]; then
                                extract_audio
                        fi
                        
		let Video_Count=Video_Count+1
		shift
	done |
		 zenity --progress --pulsate --auto-close --title="Convirtiendo a formato $video_out_type"  --text="Convirtiendo a formato $video_out_type..."  --percentage=0
zenity --info --text="Ya se termino de convertir. \nAutor: Francisco Perdigon Romero(bosito7) \n mail: bosito7@gmail.com \n          co8cv@frcuba.co.cu \n GUTL (http://gutl.jovenclub.cu)"
#crear soporte para poder cancelar la conversion
fi
El script estaba hecho para Nautilus pero yo no uso eso asi que me di la tarea de pegárselo al Dolphin. Tomé de ejemplo el plugin de convertir imágenes que aporta imagemagick y lo modifiqué para que acepte sólo videos.

Este es el fichero desktop, guardarlo en ~/.kde/share/kde4/services/ServiceMenus/GUTL_Video_Converter.desktop y reiniciar Dolphin, esto es importante si no lo hace así no le saldrá.

Código: Seleccionar todo

[Desktop Entry]
Encoding=UTF-8
ServiceTypes=KonqPopupMenu/Plugin,video/*
TryExec=convert
Type=Service
Actions=GUTLvideoconv;
X-KDE-Submenu=Convert To
X-KDE-Submenu[ar]=حول إلى
X-KDE-Submenu[be]=Канвертаваць у
X-KDE-Submenu[bg]=Конвертиране към
X-KDE-Submenu[bs]=Pretvori u
X-KDE-Submenu[ca]=Converteix a
X-KDE-Submenu[ca@valencia]=Converteix a
X-KDE-Submenu[cs]=Převést do
X-KDE-Submenu[da]=Konvertér til
X-KDE-Submenu[de]=Umwandeln in
X-KDE-Submenu[el]=Μετατροπή σε
X-KDE-Submenu[en_GB]=Convert To
X-KDE-Submenu[es]=Convertir a
X-KDE-Submenu[et]=Teisendamine
X-KDE-Submenu[eu]=Bihurtu hona
X-KDE-Submenu[fa]=تبدیل به
X-KDE-Submenu[fi]=Muunna muotoon
X-KDE-Submenu[fr]=Convertir en
X-KDE-Submenu[ga]=Tiontaigh Go
X-KDE-Submenu[gl]=Converter en
X-KDE-Submenu[he]=המר ל־
X-KDE-Submenu[hne]=ये मां बदलव 
X-KDE-Submenu[hr]=Pretvori u
X-KDE-Submenu[hu]=Konvertálás
X-KDE-Submenu[ia]=Converte a
X-KDE-Submenu[is]=Umbreyta í
X-KDE-Submenu[it]=Converti in
X-KDE-Submenu[ja]=変換
X-KDE-Submenu[kk]=Келесіге аудару:
X-KDE-Submenu[km]=បម្លែង​ទៅ
X-KDE-Submenu[kn]=ಇದಕ್ಕೆ ಪರಿವರ್ತಿಸು
X-KDE-Submenu[ko]=다음으로 변환
X-KDE-Submenu[ku]=Veguhezîne Ji
X-KDE-Submenu[lt]=Konvertuoti į
X-KDE-Submenu[lv]=Pārveidot uz
X-KDE-Submenu[nb]=Konverter til
X-KDE-Submenu[nds]=Ãœmwanneln na
X-KDE-Submenu[nl]=Converteren naar
X-KDE-Submenu[nn]=Gjer om til
X-KDE-Submenu[pa]=ਬਦਲੋ
X-KDE-Submenu[pl]=Przekształć do
X-KDE-Submenu[pt]=Converter Para
X-KDE-Submenu[pt_BR]=Converter para
X-KDE-Submenu[ro]=Convertește la
X-KDE-Submenu[ru]=Преобразовать в
X-KDE-Submenu[sk]=Previesť do
X-KDE-Submenu[sl]=Pretvori v
X-KDE-Submenu[sr]=Претвори у
X-KDE-Submenu[sr@ijekavian]=Претвори у
X-KDE-Submenu[sr@ijekavianlatin]=Pretvori u
X-KDE-Submenu[sr@latin]=Pretvori u
X-KDE-Submenu[sv]=Konvertera till
X-KDE-Submenu[tg]=Табдилкунӣ ба
X-KDE-Submenu[th]=แปลงเป็น
X-KDE-Submenu[tr]=Dönüştür
X-KDE-Submenu[ug]=ئايلاندۇر
X-KDE-Submenu[uk]=Перетворити на
X-KDE-Submenu[vi]=Chuyển đổi sang
X-KDE-Submenu[wa]=Kivierser viè
X-KDE-Submenu[x-test]=xxConvert Toxx
X-KDE-Submenu[zh_CN]=转换为
X-KDE-Submenu[zh_TW]=轉換為

[Desktop Action GUTLvideoconv]
Name=Video
Icon=video-x-generic
Exec=~/1GUTL_Video_Converter %f 
# Para instalarlo en Dolphin guarde este archivo en ~/.kde/share/kde4/services/ServiceMenus
# debe tener el GUTL_Video_Convert situado en ~ con permisos de ejecución
La última línea donde dice Exec=~/1GUTL_Video_Converter %f es el meollo de todo esto, le dice al Dolphin que es lo que hay que ejecutar y la opción %f es para pasarle al script el fichero seleccionado.

Bueno, espero que esto sea de utilidad para ustedes, así pueden adicionar cuanto scripts quieran al Dolphin sin muchas complicaciones. :ugeek:
--------------------------------------------------------
Ubuntu_14.04_Trusty_Tahr
Linux_3.13_amd64
KDE_4.13

Avatar de Usuario
BishopWolf
Mensajes: 145
Registrado: Vie, 14 Ene 2011, 11:49
Ubicación: /home/San José de las Lajas

Re: Como agregar acciones al menú secundario del Dolphin

Mensaje por BishopWolf » Mar, 07 Ene 2014, 12:24

Tengo capturas de esto funcionando pero no puedo pegarlas aqui, dejenme saber como compartirlas
--------------------------------------------------------
Ubuntu_14.04_Trusty_Tahr
Linux_3.13_amd64
KDE_4.13

Avatar de Usuario
ozkar
Mensajes: 176
Registrado: Sab, 07 Ago 2010, 14:09
Ubicación: /home/ozkar/public_html/

Re: Como agregar acciones al menú secundario del Dolphin

Mensaje por ozkar » Mar, 07 Ene 2014, 13:44

Enviame el texto y las capturas a mi correo ozkar at elechol dot une dot cu
Linux Registered User #530387
Fedora 24 User.
Plasma 5 User.

Avatar de Usuario
BishopWolf
Mensajes: 145
Registrado: Vie, 14 Ene 2011, 11:49
Ubicación: /home/San José de las Lajas

Re: Como agregar acciones al menú secundario del Dolphin

Mensaje por BishopWolf » Mar, 07 Ene 2014, 13:51

Revisa tu correo
--------------------------------------------------------
Ubuntu_14.04_Trusty_Tahr
Linux_3.13_amd64
KDE_4.13

Responder