xchat's default behavior is to set autodccsend (in the prefs file,
that's auto_dcc_send) to 2, which is "browse mode".

dcc_auto_send = 0 -> ("No") File is added to the receive window in "waiting" 
state. (Can hit a button to start it.)
dcc_auto_send = 1 -> ("Yes") File is added to the receive window in "active" 
state, starts downloading.
dcc_auto_send = 2 -> ("Browse for save folder every time") File is added to the 
receive window in "waiting" state, save-as dialog pops up.

The default, in xchat-gnome's src/common/cfgfiles.c, is *also* to set it
to 2. This is apparently inherited from xchat, which does the same, and
this is the reason that new installs of xchat-gnome have broken DCC
functionality. Several options present themselves for fixes:

* Extend xchat-gnome to have three possibilities for that pref: autoaccept, 
don't autoaccept, and pop up the save-as dialog. This might be implemented as 
two checkboxes, with the "autoaccept" one enabling/disabling the "ask for 
location" one.
* Force xchat-gnome to default to '0' ("ask"), as this is likely the safest 
behavior given the two options. If the imported preference is 2, force it to 0.
* Make xchat-gnome interpret 0 (don't autoaccept) in the same way as 2 (browse 
for save folder)--that is, if the user doesn't want to save the file, they can 
just hit "cancel". This still leaves the question of what to save this 
preference as--0 or 2?--from the preferences dialog.

I'm leaning toward the last option, but I suppose a change in behavior
like this should be run by the upstream developers. As a stopgap, I
think that we should at least default the preference to 0 ("ask"), and
interpret dcc_auto_send == 2 the same way we currently do 0, for minimal
disturbance of the user's existing preferences. I'll open an upstream
bug if I can get the upstream SVN version to compile.

-- 
Autoaccepted DCC transfers fail; manually-accepted ones work.
https://bugs.launchpad.net/bugs/315549
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to xchat-gnome in ubuntu.

-- 
desktop-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to