Saturday, April 27, 2024
 Popular · Latest · Hot · Upcoming
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 1936  / 2 Years ago, sat, october 22, 2022, 12:21:54

I'm making a custom launcher/desktop file to place in the Unity Launcher Bar. However, when I drag the launcher icon from ~/.local/share/applications, it disappears immediately. This is probably caused by a syntax error in my .desktop file. Is there a unity log file I can look at to find what the problem is?


More From » unity

 Answers
6

I had the same kind of problems.
I can give you 2 directions:




  1. Use an application like 'Create Launcher' from mlux.at to create the launcher.

  2. If it is a shell script and you cannot launch it, then do an echo of the command that is executed and put this command into a script of your choice and use this one into the launcher.



Ex:



echo $_JAVA_EXEC $_VM_PROPERTIES -Xmx${MAXIMUM_HEAP_SIZE} -Dsmartsvn.vm-xmx=${MAXIMUM_HEAP_SIZE} -jar "$SMARTSVN_HOME/lib/smartsvn.jar" "$@"


was in smartsvn.sh



I created a file smart.sh and put inside



/home/rudy/opt/jdk1.6.0_33/bin/java -XX:-UseSSE42Intrinsics -Dsun.io.useCanonCaches=false -Djava.net.preferIPv4Stack=true -Xmx256m -Dsmartsvn.vm-xmx=256m -jar /home/rudy/opt/smartsvn-7_0_4/lib/smartsvn.jar


This time it was successful.



Hope it helps.


[#38240] Sunday, October 23, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
thellfi

Total Points: 222
Total Questions: 103
Total Answers: 123

Location: Palau
Member since Mon, Aug 16, 2021
3 Years ago
;