DC++ Under wine

Use this forum to flesh out your feature request before you enter it in <a href="http://dcpp.net/bugzilla/">Bugzilla</a>.

Moderator: Moderators

Locked
Pothead
Posts: 223
Joined: 2005-01-15 06:55

DC++ Under wine

Post by Pothead » 2006-01-25 19:02

In relation to:
http://dcpp.net/forum/viewtopic.php?t=16118
(quick summary as i think that section gets purged)
DC++ crashes when ran under wine.
2 ways to solve this:
1.
arnetheduck wrote:It works if you switch off the transfer view (last item of the view menu) before connecting to any hub...
2.
arnetheduck wrote:...alternatively, should work if you switch off progress bars in the settings...
I don't know how Wine is classed as an OS, but should the 2nd function (and the respective setting) have a
IfDef win
thingy wrapped around them ?

Carraya
Posts: 112
Joined: 2004-09-21 11:43

Post by Carraya » 2006-01-26 03:09

I don't think it would actually work better in wine for that reason, since wine as far as I remember by default tries to be win98se
<random funny comment>

ullner
Forum Moderator
Posts: 333
Joined: 2004-09-10 11:00
Contact:

Post by ullner » 2006-01-26 06:50

By looking at the exceptioninfo, it tries to be Windows XP SP2.

Pothead
Posts: 223
Joined: 2005-01-15 06:55

Post by Pothead » 2006-01-26 09:27

ullner wrote:By looking at the exceptioninfo, it tries to be Windows XP SP2.
Thanks. That means that a ifdef win idea is out of the window.

From google
Alberto Massari wrote:Like someone else said (IIRC), you could check for the existence of the Wine configuration registry key branch. That'd be a 150% reliable method of detecting Wine presence.
Not something i know how to do (or know what to look for) but the idea seems feasible. :)

ullner
Forum Moderator
Posts: 333
Joined: 2004-09-10 11:00
Contact:

Post by ullner » 2006-01-26 09:48

HKEY_CURRENT_USER\Software\Wine
http://www.winehq.com/site/docs/wineusr ... ng-regedit

Check out RegOpenKeyEx in the DC++ source.

GargoyleMT
DC++ Contributor
Posts: 3212
Joined: 2003-01-07 21:46
Location: .pa.us

Post by GargoyleMT » 2006-01-26 12:00

Pothead wrote:That means that a ifdef win idea is out of the window.
Well, #ifdef was always out the window - it's compile time. But it does mean that you won't be able to detect it on the fly with the WinUtil::getOsMajor() and ::getOsMinor().

Have we established if it's a bug in DC++ or a bug in WINE? Before you do anything, you need to eliminate the latter...

ullner
Forum Moderator
Posts: 333
Joined: 2004-09-10 11:00
Contact:

Post by ullner » 2006-01-26 12:53

Indeed. And:
9.5. How can I detect Wine?

You really shouldn't want to do this. If there's a quirk in Wine you need to work around, it's much better to fix it in Wine.

Carraya
Posts: 112
Joined: 2004-09-21 11:43

Post by Carraya » 2006-01-26 15:48

I think it's a Wine bug, since it's meant to work on windows, it's part of the windows gui, and it works in all windows versions from win2000 to vista.
<random funny comment>

Locked