Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Jessé_L_
Beginner
32 Views

Atalho no desktop para o Xdk

Caros colegas, saudações

Instalei o Xdk em meu Ubuntu e funciona bem, sem problemas quando faço a chamada direto pelo terminal, no entanto procurei criar um atalho no Desktop para este. Obtenho a seguinte mensagem:

"There was an error launching the application"

Ok. Preparei o meu Xdk.desktop -  ele configurou o ícone de atalho imediatamente após ser salvo - com o seguinte código:

[Desktop Entry]
Encoding=UTF-8
Name=Xdk
Comment=Atalho para Intel Xdk
Type=Application
Terminal=false
Exec=/home/jesseluz/intel/XDK/xdk.sh
Icon=/home/jesseluz/intel/XDK/xdk/public/images/xdk_icon.png
StartupNotify=true
Categories=Development;IDE;

O código de execução do xdk.sh (pré configurado pela Inte) é:

#!/bin/sh
cur_dir="$( cd "$( dirname "$0" )" && pwd )"
LD_LIBRARY_PATH="${cur_dir}:${cur_dir}/bin/libwi:$LD_LIBRARY_PATH" "${cur_dir}/bin/nw" --file-descriptor-limit=8192 "${cur_dir}/xdk/xdk-wrapper" > /dev/null 2>&1


Onde está a incongruência??

Tags (2)
0 Kudos
1 Reply
PaulF_IntelCorp
Employee
32 Views

There could be either a current directory location problem or a problem with exporting environment variables. Try using this script, instead to see if it works any better:

#!/bin/sh
# assumes XDK installed in user folder (underneath ~)
# may not work if you have multiple copies of XDK installed
# because it executes first copy of xdk.sh that is found

# locate and cd to folder that contains the xdk.sh script
cd "$( dirname "$( find ~ -name xdk.sh -print -quit )" )"
#echo $(pwd)

#cur_dir="$( cd "$( dirname "$0" )" && pwd )"
cur_dir="$(pwd)"

export LD_LIBRARY_PATH="${cur_dir}:$LD_LIBRARY_PATH" 
exec "${cur_dir}/bin/nw" --file-descriptor-limit=8192 "${cur_dir}/xdk/xdk-wrapper" > /dev/null 2>&1
Reply