Sweet Home 3D - Poblème de création d'icône dans le launcher

Bonjour,

J’ai rencontré un problème en installant SweetHome3D via les paquets AUR. Le logiciel s’installe mais je ne parviens pas à le lancer : une fenêtre s’ouvre avec le nom du logiciel et c’est tout. (cf image ci-dessous
Capture d’écran de 2021-10-30 13-16-21

J’ai donc installé le logiciel en suivant les instructions du site officiel (http://www.sweethome3d.com/download.jsp

L’installation a fonctionné, je parviens à lancer le leogiciel en me rendant dans le dossier d’instal et en exécutant le programme.

Je ne parviens par ccontre pas à créer une icone dans le lanceur d’application de GNOME. J’ai lsuivi les instructions de ce site en les adaptant à la version téléchargée.

Ce qui donne :

$ sudo mv SweetHome3D-6.6 /opt/
$ sudo gedit /usr/share/applications/sweethome3d-6.6.desktop

Je reçois les avertissements suivants lorsque j’exécute cette commande :

(gedit:4116): Gtk-WARNING **: 14:10:52.577: Theme parsing error: gtk.css:61:27: Junk at end of value for background-color

(gedit:4116): Gtk-WARNING **: 14:10:52.577: Theme parsing error: gtk.css:76:27: Junk at end of value for background-color

(gedit:4116): Gtk-WARNING **: 14:10:52.577: Theme parsing error: gtk.css:110:27: Junk at end of value for background-color

(gedit:4116): Gtk-WARNING **: 14:10:52.581: Theme parsing error: gtk.css:2475:27: Junk at end of value for background-color

(gedit:4116): Gtk-WARNING **: 14:10:52.583: Theme parsing error: gtk.css:3755:27: Junk at end of value for background-color

(gedit:4116): Gtk-WARNING **: 14:10:52.583: Theme parsing error: gtk.css:3860:33: Expected ')' at end of 'image'

(gedit:4116): Gtk-WARNING **: 14:10:52.583: Theme parsing error: gtk.css:3942:27: Junk at end of value for background-color

(gedit:4116): Gtk-WARNING **: 14:10:52.583: Theme parsing error: gtk.css:4063:27: Junk at end of value for background-color

(gedit:4116): Gtk-WARNING **: 14:10:52.583: Theme parsing error: gtk.css:4069:27: Junk at end of value for background-color

(gedit:4116): Gtk-WARNING **: 14:10:52.583: Theme parsing error: gtk.css:4101:27: Junk at end of value for background-color

(gedit:4116): Gtk-WARNING **: 14:10:52.583: Theme parsing error: gtk.css:4115:27: Junk at end of value for background-color

(gedit:4116): Gtk-WARNING **: 14:10:52.583: Theme parsing error: gtk.css:4174:27: Junk at end of value for background-color

(gedit:4116): Gtk-WARNING **: 14:10:52.584: Theme parsing error: gtk.css:4320:33: Expected ')' at end of 'image'

(gedit:4116): Gtk-WARNING **: 14:10:52.584: Theme parsing error: gtk.css:4435:33: Expected ')' at end of 'image'

(gedit:4116): Gtk-WARNING **: 14:10:52.584: Theme parsing error: gtk.css:4518:27: Junk at end of value for background-color

(gedit:4116): Gtk-WARNING **: 14:10:52.586: Theme parsing error: gtk.css:6182:36: Missing semicolon at end of color definition

(gedit:4116): Gtk-WARNING **: 14:10:52.586: Theme parsing error: gtk.css:6194:42: Missing semicolon at end of color definition

(gedit:4116): Gtk-WARNING **: 14:10:52.586: Theme parsing error: gtk.css:6209:46: Missing semicolon at end of color definition

(gedit:4116): Gtk-WARNING **: 14:10:52.586: Theme parsing error: gtk.css:6244:37: Missing semicolon at end of color definition

(gedit:4116): Gtk-WARNING **: 14:10:52.586: Theme parsing error: gtk.css:6246:34: Missing semicolon at end of color definition

(gedit:4116): dconf-WARNING **: 14:10:52.623: failed to commit changes to dconf: Erreur lors de la génération de la ligne de commande « dbus-launch --autolaunch=3eef1aec72554fbe9aff2399552261fa --binary-syntax --close-stderr » : Le processus fils s’est terminé avec le code 1

(gedit:4116): dconf-WARNING **: 14:10:52.629: failed to commit changes to dconf: Erreur lors de la génération de la ligne de commande « dbus-launch --autolaunch=3eef1aec72554fbe9aff2399552261fa --binary-syntax --close-stderr » : Le processus fils s’est terminé avec le code 1

** (gedit:4116): WARNING **: 14:10:52.787: Error loading plugin: libhspell.so.0: Ne peut ouvrir le fichier d'objet partagé: Aucun fichier ou dossier de ce type


** (gedit:4116): WARNING **: 14:10:52.788: Error loading plugin: libnuspell.so.5: Ne peut ouvrir le fichier d'objet partagé: Aucun fichier ou dossier de ce type


** (gedit:4116): WARNING **: 14:10:52.789: Error loading plugin: libaspell.so.15: Ne peut ouvrir le fichier d'objet partagé: Aucun fichier ou dossier de ce type


** (gedit:4116): WARNING **: 14:10:52.789: Error loading plugin: libvoikko.so.1: Ne peut ouvrir le fichier d'objet partagé: Aucun fichier ou dossier de ce type


** (gedit:4116): WARNING **: 14:10:52.792: Error loading plugin: libhspell.so.0: Ne peut ouvrir le fichier d'objet partagé: Aucun fichier ou dossier de ce type


** (gedit:4116): WARNING **: 14:10:52.792: Error loading plugin: libnuspell.so.5: Ne peut ouvrir le fichier d'objet partagé: Aucun fichier ou dossier de ce type


** (gedit:4116): WARNING **: 14:10:52.792: Error loading plugin: libaspell.so.15: Ne peut ouvrir le fichier d'objet partagé: Aucun fichier ou dossier de ce type


** (gedit:4116): WARNING **: 14:10:52.792: Error loading plugin: libvoikko.so.1: Ne peut ouvrir le fichier d'objet partagé: Aucun fichier ou dossier de ce type


(gedit:4116): dconf-WARNING **: 14:10:52.793: failed to commit changes to dconf: Erreur lors de la génération de la ligne de commande « dbus-launch --autolaunch=3eef1aec72554fbe9aff2399552261fa --binary-syntax --close-stderr » : Le processus fils s’est terminé avec le code 1

(gedit:4116): dconf-WARNING **: 14:10:52.793: failed to commit changes to dconf: Erreur lors de la génération de la ligne de commande « dbus-launch --autolaunch=3eef1aec72554fbe9aff2399552261fa --binary-syntax --close-stderr » : Le processus fils s’est terminé avec le code 1

(gedit:4116): dconf-WARNING **: 14:10:52.794: failed to commit changes to dconf: Erreur lors de la génération de la ligne de commande « dbus-launch --autolaunch=3eef1aec72554fbe9aff2399552261fa --binary-syntax --close-stderr » : Le processus fils s’est terminé avec le code 1

Le contenu du fichier .desktop :

Version=1.0
Name=Sweet Home 3D 6.6
GenericName=Interior 2D design application with 3D preview
GenericName[de]=Innenraumplaner
Comment=Interior design Java application for quickly choosing and placing furniture on a house 2D plan drawn by the end-user with a 3D preview
Exec=/opt/SweetHome3D-6.6/SweetHome3D
Icon=/usr/share/icons/SweetHome3DIcon.png
StartupNotify=true
StartupWMClass=com-eteks-sweethome3d-SweetHome3D
Terminal=false
Type=Application
Categories=Graphics;2DGraphics;3DGraphics;
Keywords=interior;design;2D;3D;home;house;furni

Et j’ai ensuite créé l’icône comme indiqué :slight_smile:

cp SweetHome3DIcon.png /usr/share/icons/

J’ai vérifié dans mes dossiers, tous les noms de fichiers et chemin d’accès me semblent cohérent. Malgré cela l’icône n’apparait pas dans le launcher, même après redémarrage.

Je suis sous endeavourOS avec Gnome 40.4.0 et Wayland.

En vous remerciant.

Une mise à jour JRE a cassé sweethome3d. Vous devrez peut-être attendre que l’application elle-même se met à jour vers le nouveau JRE. Pas un bug dans EnOS. J’espère que la traduction est bonne.

Was using Sweethome3D to remodel my kitchen, neat software to get the basic ideas, 
when I did an EnOS update some Jave runtimes were updated.
 All I get now is the splash screen.
 Waiting patiently for the Sweethome3D developers to catch up.

Mean time I'm using an old install of Mint to finish my project.
Sweethome3D still works in Mint. (older java runtimes)

Hope this helps.

J’utilisais Sweethome3D pour remodeler ma cuisine, un logiciel soigné pour obtenir les idées de base,
lorsque j’ai fait une mise à jour EnOS, certains runtimes Jave ont été mis à jour. Tout ce que je reçois maintenant, c’est l’écran de démarrage. Attendant patiemment que les développeurs de Sweethome3D rattrapent leur retard.

En attendant, j’utilise une ancienne installation de Mint pour terminer mon projet.
Sweethome3D fonctionne toujours dans Mint. (anciens runtimes java)

J’espère que cela vous aidera.

Thank you for the answer and the translation effort.

It answers to the 1st part of my problem : why SweetHome3D is not running using the AUR version. Thank you for your answer and your researchs.

But it actually runs well with the installer downloaded via the official website. I just understand why I can’t create an icon to run the app using the launcher. The app is running well when i launch it by executing the file in the directory created.

I have to try the website version. Maybe another can help with the launcher in the meantime.
Let you know my results later after install.

Actually on the Mint machine at the moment! :flushed:

Just got back from ordering my kitchen cabinets… sorry not back sooner. :frowning:

Had to install EnOS Gnome to test. This works for me.

sudo gedit /usr/share/applications/sweethome3d-6.6.desktop
[Desktop Entry]
Version=1.0
Name=Sweet Home 3D 6.6
GenericName=Interior 2D design application with 3D preview
Comment=Interior design Java application for quickly choosing and placing furniture on a house 2D plan drawn by the end-user with a 3D preview
Exec=/home/jmagick/myapps/SweetHome3D-6.6/SweetHome3D
Icon=SweetHome3DIcon
StartupNotify=true
StartupWMClass=com-eteks-sweethome3d-SweetHome3D
Terminal=false
Type=Application
Categories=Graphics;2DGraphics;3DGraphics;
Keywords=interior;design;2D;3D;home;house;furniture;java;

from the folder where the png icon is located

sudo cp SweetHome3DIcon.png /usr/share/icons/

The line where Exec= should be the location of where your executable file is.
I have a folder I call myapps where I put stand alone programs. You can call yours anything you want.

Reboot or maybe logout and login back in for the changes to take effect.

Let me know if this works for you. :slightly_smiling_face: