After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 155246 - gnome-default-applications-properties improvements
gnome-default-applications-properties improvements
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: [obsolete] Preferred applications
git master
Other Linux
: Normal normal
: ---
Assigned To: Control-Center Maintainers
Control-Center Maintainers
Depends on:
Blocks:
 
 
Reported: 2004-10-12 22:51 UTC by J.H.M. Dassen (Ray)
Modified: 2005-05-16 22:12 UTC
See Also:
GNOME target: ---
GNOME version: 2.7/2.8


Attachments
Proposed patch (2.86 KB, patch)
2004-10-12 22:51 UTC, J.H.M. Dassen (Ray)
committed Details | Review
reworked patch (2.33 KB, patch)
2004-10-14 08:31 UTC, Kjartan Maraas
committed Details | Review

Description J.H.M. Dassen (Ray) 2004-10-12 22:51:19 UTC
gnome-default-applications-properties misses w3m, doesn't know Mozilla Firefox
by its current binary name and could be made to support some Debian specific
helper apps.
Comment 1 J.H.M. Dassen (Ray) 2004-10-12 22:51:51 UTC
Created attachment 32537 [details] [review]
Proposed patch
Comment 2 Jody Goldberg 2004-10-13 14:29:50 UTC
Comment on attachment 32537 [details] [review]
Proposed patch

Fine Please commit.
Do we want x-www-browser too ?
Comment 3 J.H.M. Dassen (Ray) 2004-10-13 15:42:30 UTC
sensible-browser takes care of that; it's a wrapper script that tries the
browser(s) in $BROWSER (if defined) and falls back to x-www-browser (if $DISPLAY
is set) or x-terminal-emulator -e www-browser.

I've committed the patch.
Comment 4 Kjartan Maraas 2004-10-14 08:15:10 UTC
Please revert the string changes. You can add a new entry for Firefox without
changing the string, but we should not be adding strings until we branch.
There's also a patch to fix up other stuff in this dialog that should be
applied, but adding strings days before a stable release is not the way to go.
Comment 5 Kjartan Maraas 2004-10-14 08:30:21 UTC
I commited the attached patch to fix up the string changes. This should make it
work better. Together with a couple of other approved patches.
Comment 6 Kjartan Maraas 2004-10-14 08:31:16 UTC
Created attachment 32594 [details] [review]
reworked patch
Comment 7 Kjartan Maraas 2004-10-14 08:37:58 UTC
So, the original patch should go in on HEAD after branching. It probably needs
tweaking to apply, and it would probably be a good idea to rework the lists to
drop some old stuff etc?
Comment 8 Sebastien Bacher 2004-10-17 00:02:30 UTC
control-center has branched, ok to commit the original patch changes ? Do you
want extra changes ?
Comment 9 J.H.M. Dassen (Ray) 2004-10-17 08:34:47 UTC
I took the liberty of changing things in HEAD
(http://cvs.gnome.org/viewcvs/gnome-control-center/capplets/default-applications/gnome-default-applications-properties-structs.c?rev=1.12&only_with_tag=HEAD&view=log)
and of fixing what I could without string changes in gnome-2-8 
(http://cvs.gnome.org/viewcvs/gnome-control-center/capplets/default-applications/gnome-default-applications-properties-structs.c?only_with_tag=gnome-2-8&r2=1.11.2.1&r1=1.11).

When/if string changes are allowed for gnome-2-8, the full changes from HEAD can
be backported.
Comment 10 Steve Garcia 2004-10-18 22:11:25 UTC
Note that MailReader doesn't allow Thunderbird as an option.  This should
probably be fixed in the same manner as Firefox above.
Comment 11 J.H.M. Dassen (Ray) 2004-10-21 19:20:25 UTC
I've added Thunderbird to HEAD.
Comment 12 Stefan Ihringer 2004-10-22 20:03:36 UTC
This dialog also doesn't list Opera and Evolution 2.0 yet. Opera's binary is 
called "opera", and it's launched like all the other browsers ("opera %s").
Comment 13 Sebastien Bacher 2004-11-25 13:26:15 UTC
any reason to keep name1/name2 titles ?

diff -u -r1.14 gnome-default-applications-properties-structs.c
--- gnome-default-applications-properties-structs.c     21 Oct 2004 19:19:45
-0000      1.14
+++ gnome-default-applications-properties-structs.c     25 Nov 2004 13:25:15 -0000
@@ -10,10 +10,10 @@
         { N_("Epiphany"),              "epiphany",     "epiphany %s",         
FALSE, FALSE },
         { N_("Galeon"),                "galeon",       "galeon %s",           
FALSE, FALSE },
         { N_("Encompass"),             "encompass",    "encompass %s",        
FALSE, FALSE },
-        { N_("Firebird/FireFox"),  "mozilla-firebird",  "mozilla-firebird %s",
 FALSE, FALSE },
+        { N_("Firebird"),  "mozilla-firebird",  "mozilla-firebird %s",  FALSE,
FALSE },
         { N_("Firefox"),       "firefox",      "firefox %s",   FALSE, FALSE },
-        { N_("Mozilla/Netscape 6"),    "mozilla-1.6",  "mozilla-1.6 %s",      
FALSE, FALSE },
-        { N_("Mozilla/Netscape 6"),    "mozilla",      "mozilla %s",          
FALSE, FALSE },
+        { N_("Mozilla"),       "mozilla-1.6",  "mozilla-1.6 %s",       FALSE,
FALSE },
+        { N_("Mozilla"),       "mozilla",      "mozilla %s",           FALSE,
FALSE },
         { N_("Netscape Communicator"),         "netscape",     "netscape %s", 
        FALSE, FALSE },
         { N_("Konqueror"),             "konqueror",    "konqueror %s",        
FALSE, FALSE },
         { N_("W3M Text Browser"),      "w3m",          "w3m %s",              
TRUE,  FALSE },

Ok to commit this ?
Comment 14 Jody Goldberg 2004-11-25 16:07:33 UTC
seb : foo/bar names seem cleaner to me than having such a large plethora of entries.

For 2.10 I think we should aim to keep this list externally
Comment 15 Sebastien Bacher 2004-11-25 16:41:49 UTC
you don't get a plethora of entries on screen since only installed app are
displayed ... by example having Firebird/Firefox is confusing for the users who
don't even know what firebird is, and firebird will not be displayed on a system
with firefox installed ...
Comment 16 Jody Goldberg 2004-11-29 21:38:44 UTC
True, I'd forgotten that we added that.
patch approved.
Comment 17 Sebastien Bacher 2004-11-30 01:24:04 UTC
commited. BTW what do you mean by "we should aim to keep this list externally" ?
How/where do you want to store this ?
Comment 18 Jody Goldberg 2004-11-30 04:01:45 UTC
Seems like something we could stick in an xml file.  gconf would be nice, but
the data is too complex for the simple list implementation.
Comment 19 Luis Villa 2005-01-04 23:47:26 UTC
Comment on attachment 32594 [details] [review]
reworked patch

So can we close this bug then? Or leave it open and rename to 'move data to an
external xml file'? I've taken the liberty of marking the reworked patch
committed.
Comment 20 Kjartan Maraas 2005-05-16 22:12:00 UTC
The other one was commited too it seems. Closing this as fixed. Please file a
new bug report for the externalization of the data so we don't have to read
through a whole bunch of old comments to get to the core of the issue.