Enviado em 03/12/2014 - 07:49h
Olá,
estou tentando criar um atalho com menu de ações (tipo Nova janela do Google Chrome) do Plex Media Server para por no lançador. O objetivo dele é abrir o localhost:32400, iniciar, parar ou reiniciar o serviço plexmediaserver.
Apenas a opção de abrir o localhost funciona. Como consertar isso?
O que fiz até agora:
plex.desktop
estou tentando criar um atalho com menu de ações (tipo Nova janela do Google Chrome) do Plex Media Server para por no lançador. O objetivo dele é abrir o localhost:32400, iniciar, parar ou reiniciar o serviço plexmediaserver.
Apenas a opção de abrir o localhost funciona. Como consertar isso?
O que fiz até agora:
plex.desktop
[Desktop Entry]
Name=Plex Media Server
Exec=google-chrome http://localhost:32400/web/
Icon=/home/crowley/Imagens/plex.png
Type=Application
Categories=Utility;Application;
Terminal=false
Actions=Abrir;Iniciar;Reiniciar;Parar
[Desktop Action Abrir]
Name=Gerenciar
Exec=google-chrome http://localhost:32400/web/
OnlyShowIn=Unity;
[Desktop Action Iniciar]
Name=Iniciar
Exec=/home/crowley/.plex/plex-iniciar.sh
OnlyShowIn=Unity;
[Desktop Action Reiniciar]
Name=Reiniciar
Exec=/home/crowley/.plex/plex-restart.sh
OnlyShowIn=Unity;
[Desktop Action Parar]
Name=Parar
Exec=/home/crowley/.plex/plex-stop.sh
OnlyShowIn=Unity;
plex-iniciar.shName=Plex Media Server
Exec=google-chrome http://localhost:32400/web/
Icon=/home/crowley/Imagens/plex.png
Type=Application
Categories=Utility;Application;
Terminal=false
Actions=Abrir;Iniciar;Reiniciar;Parar
[Desktop Action Abrir]
Name=Gerenciar
Exec=google-chrome http://localhost:32400/web/
OnlyShowIn=Unity;
[Desktop Action Iniciar]
Name=Iniciar
Exec=/home/crowley/.plex/plex-iniciar.sh
OnlyShowIn=Unity;
[Desktop Action Reiniciar]
Name=Reiniciar
Exec=/home/crowley/.plex/plex-restart.sh
OnlyShowIn=Unity;
[Desktop Action Parar]
Name=Parar
Exec=/home/crowley/.plex/plex-stop.sh
OnlyShowIn=Unity;
#!/bin/bash
sudo service plexmediaserver start
plex-restart.shsudo service plexmediaserver start
#!/bin/bash
sudo service plexmediaserver restart
plex-stop.shsudo service plexmediaserver restart
#!/bin/bash
sudo service plexmediaserver stop
sudo service plexmediaserver stop