Thanks for considering. PS: In case I do not hear anything in one week I dare to add that feature myself.
I do not think this is appropriate. Providing two .desktop files will only get users confused. Dia being multi-window is not more annoying/good/whatever your opinion than the Gimp or other applications like that so there is imho no need to change anything.
I would report this to upstream instead as maybe they choose to use integrated by default or even provide two desktop files
(In reply to comment #1) > Providing two .desktop files will only get users confused. How so? > Dia being multi-window is not more > annoying/good/whatever your opinion than the Gimp or other applications like > that Gimp introduces single-window mode with 2.7.x which is why I was interested in Gimp 2.7.x in the first place before we had it present in Gentoo. With Dia it seems to be a different story. Single window mode can (to my best knowledge) only be enabled from the command line. Debian seems to enable single window mode for Dia from the .desktop file for everyone at the same version of Dia, which is why I thought of two files in Gentoo. > I would report this to upstream instead as maybe they choose to use > integrated by default or even provide two desktop files Good idea, I'll contact upstream about. Please keep this very bug open until we have a reply.
FYI this is the Debian way (though I am not suggesting that route): # fgrep -R -- --integrated debian/ debian/dia-gnome-integrated:dia-gnome --integrated "$@" debian/dia-normal-integrated:dia-normal --integrated "$@" debian/changelog: * Adding "--integrated" version via wrapper scripts and alternatives
It seems there is no need for reporting anything: upstream is well-informed [1]. The status is: there is no way to change from many- to single-window-mode or back at runtime for complexity reasons and the wish to not require a restart of Dia for that matter. It takes effort to get it right and upstream is not willing to make that effort themselves (yet or ever). In interest of every Gentoo Dia user I therefore recommend that we either a) make two desktop files Name=Dia Diagram Editor and Name=Dia Diagram Editor (integrated mode) (similar to Blender in Gentoo) or b) introduce a use flag "integrated" that patches "--integrated" into the one and only .desktop file of Dia. Either way gives choice to people and keeps downstream at a level that is trivial to maintain. Off course I could keep patching my local .desktop file but that doesn't help anyone. Please give permission to me for (a) or (b). Thanks! [1] https://bugzilla.gnome.org/show_bug.cgi?id=588208
Personally I would opt for first suggestion (two desktop files) but, as Gilles didn't like that approach before, better wait a bit to give him a opportunity to evaluate other options that I could wrongly miss.
(In reply to comment #6) > Personally I would opt for first suggestion (two desktop files) but, as > Gilles didn't like that approach before, better wait a bit to give him a > opportunity to evaluate other options that I could wrongly miss. Gilles, anew news?
I went forward now. +*dia-0.97.2-r1 (02 Jun 2012) + + 02 Jun 2012; Sebastian Pipping <sping@gentoo.org> +dia-0.97.2-r1.ebuild: + Install second desktop file for integrated mode (bug #415495) +
Sorry for not responding earlier. My opinion is that debian's way is worth thinking about. What about an eselect of some kind that would switch between modes and call update-desktop-database ?
These two .desktop files have the same Name parameters in non-english locale & are shown with the same name in menu. For example, for "ru" locale: [dia.desktop] Name=Dia Diagram Editor Name[ru]=Dia — Редактор диаграмм [dia-integrated.desktop] Name=Dia Diagram Editor (integrated mode) Name[ru]=Dia — Редактор диаграмм
(In reply to Ilya Gordeev from comment #10) > These two .desktop files have the same Name parameters in non-english locale > & are shown with the same name in menu. For example, for "ru" locale: > > [dia.desktop] > Name=Dia Diagram Editor > Name[ru]=Dia — Редактор диаграмм > > [dia-integrated.desktop] > Name=Dia Diagram Editor (integrated mode) > Name[ru]=Dia — Редактор диаграмм The two .desktop files installed by my local copy of Dia 0.97.2-r1 # equery f app-office/dia | fgrep .desktop /usr/share/applications/dia-integrated.desktop /usr/share/applications/dia.desktop do not contain Name[ru] entries like yours. Any ideas why you have them and I don't? I don't see any language handling in the ebuild either. Also, if this still matters to you let me encourage you to open a dedicated bug for it since this is actually a new issue. Okay? Great :-)