Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 415495 - app-office/dia should provide second .desktop file with --integrated for single-window mode
Summary: app-office/dia should provide second .desktop file with --integrated for sing...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: GNOME Office (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-11 16:24 UTC by Sebastian Pipping
Modified: 2013-06-08 21:29 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Pipping gentoo-dev 2012-05-11 16:24:37 UTC
Thanks for considering.

PS: In case I do not hear anything in one week I dare to add that feature myself.
Comment 1 Gilles Dartiguelongue (RETIRED) gentoo-dev 2012-05-11 21:16:24 UTC
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.
Comment 2 Pacho Ramos gentoo-dev 2012-05-12 06:29:46 UTC
I would report this to upstream instead as maybe they choose to use integrated by default or even provide two desktop files
Comment 3 Sebastian Pipping gentoo-dev 2012-05-12 12:09:06 UTC
(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.
Comment 4 Sebastian Pipping gentoo-dev 2012-05-12 16:51:30 UTC
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
Comment 5 Sebastian Pipping gentoo-dev 2012-05-12 17:07:15 UTC
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
Comment 6 Pacho Ramos gentoo-dev 2012-05-13 10:04:35 UTC
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.
Comment 7 Sebastian Pipping gentoo-dev 2012-05-15 22:16:33 UTC
(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?
Comment 8 Sebastian Pipping gentoo-dev 2012-06-02 21:59:59 UTC
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)
+
Comment 9 Gilles Dartiguelongue (RETIRED) gentoo-dev 2012-08-08 15:44:44 UTC
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 ?
Comment 10 Ilya Gordeev 2013-05-01 19:22:33 UTC
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 — Редактор диаграмм
Comment 11 Sebastian Pipping gentoo-dev 2013-06-08 21:29:00 UTC
(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 :-)