#!/usr/bin/env python
# -*- coding: utf-8 -*-
#######################################################################
# SHORTCUT CREATOR FOR LUBUNTU v1.0 #
# Copyright 2015 - Tiago Galvão - doit@slaveworx.esy.es #
#######################################################################
print "############### Lubuntu Shortcut Creator v1.0 ###############"
ficheiro = str(raw_input("# Insert the desired filename > "))
atalho = open(ficheiro + ".desktop", "a+")
atalho.write("[Desktop Entry]\nEncoding=UTF-8\n");
print "###############################################################\n"
versao = str(raw_input("\nInsert the program version > "))
atalho.write("Version=" + versao + "\n");
atalho.write("Type=Application" + "\n");
terminal = raw_input("Use terminal to launch? (True ou False)> ")
atalho.write("Terminal=" + terminal + "\n");
comando = str(raw_input("Insert the command to execute > "))
atalho.write("Exec=" + comando + "\n");
nome = str(raw_input("Insert the shortcut name > "))
atalho.write("Name=" + nome + "\n");
print "\nShortcut created successfully!!!\n\n"
atalho.close()