Barafu
Posts: 9
Joined: Thu Jun 25, 2015 2:19 pm

Linux version: the .desktop file lack a definition.

In Linux, the program installer creates a shortcut on the desktop, using a .desktop file. However, there are few problems with it.
1) If installing with root permission, this file is owned by root. This makes the file read-only for user. User is stuck with read-only file on his personal desktop.
2) Actually, when installing with user permissions, this file should not go to

Code: Select all

~/Desktop
at all. It should go to

Code: Select all

/usr/share/applications
. This will make Simplify3D entry to automatically appear in various WM menus and panels. Currently, the pro users do the copying manually, while beginner users ask how do they run Simplify3D after installation. For example, in KDE the files in Desktop folder do not actually appear on Desktop unless a special widget is added.
3) In any case, the .desktop file must contain additional line,

Code: Select all

StartupWMClass=Simplify3D
. Currently, in Unity (the most popular WM) the icon in the launcher has no icon, showing a grey square instead. in Unity, where all UI is based on recognisable icons, this is really problematic. This happens because WM attributes icon to the launcher .sh file, not the binary itself. The line I suggest should tell the WM that the actual software is binary, and sh script is just a proxy.
bjornburton
Posts: 1
Joined: Sat Jan 27, 2018 1:45 pm

Re: Linux version: the .desktop file lack a definition.

Symptom: Once started, the Unity launcher created a separate gray icon with a question-mark. Re-installing did not help.
This is the Simplify3d 4.0.1 (downloded today) and my new Dell with Ubuntu 16.04 LTS.
Finding this post, I moved ~desktop/simplify3d.desktop to /usr/share/applications/ and added the line StartupWMClass=Simplify3D to it.
It works perfect now!
ben8jk276dxj1
Posts: 1
Joined: Fri Feb 21, 2020 8:15 pm

Re: Linux version: the .desktop file lack a definition.

I use Kubuntu, I made a .desktop file for Simplify3D:

nano /usr/share/applications/Simplify3D.desktop

Code: Select all

[Desktop Entry]
Comment[en_AU]=
Comment=
Icon=/opt/Simplify3D/icon.png
Path=/opt/Simplify3D
Exec=env LD_LIBRARY_PATH=. ./Simplify3D "$@"
StartupWMClass=Simplify3D
GenericName[en_AU]=
GenericName=
Type=Application
MimeType=
Name[en_AU]=Simplify3D
Name=Simplify3D
StartupNotify=true
Terminal=false
TerminalOptions=
X-DBUS-ServiceName=
X-DBUS-StartupType=none
X-KDE-SubstituteUID=false
X-KDE-Username=

Return to “Troubleshooting and Bug Reports”