Re: GWorkspace issues on MinGW

Enrico Sersale <[email protected]> Fri, 18 Aug 2006 15:18:36 +0300
Newsgroups gmane.comp.lib.gnustep.applications
Message-ID <[email protected]>
On 2006-08-18 14:01:02 +0300 Nicolas Roard <[email protected]> wrote:

> On 8/17/06, explodingpickledotorg <[email protected]> wrote:
>> 
>> I'm having trouble getting GWorkspace to work properly. I am using MinGW and
>> GWorkspace v.0.8.2. Here's a picture of the problem (I uploaded it to my
>> server; Nabble's image uploader wasn't working):
>> http://pickle.echoechoplus.com/gworkspace/fileviewer.PNG Picture 1 . As you
>> can see, GWorkspace isn't able to recognize my hard drive.
>> 
>> Now take a look at  http://pickle.echoechoplus.com/gworkspace/desktop.PNG
>> Picture 2 . As you can see, GWorkspace can recognize the folder enough to
>> put it on the Desktop, but it will not open it. Another time I tried this, I
>> got an error about not being able to open "C:\DesktopNewFolder". Is there a
>> change I could make in the source, or should I try to find a different
>> (working) version?
> 
> I'm not sure GWorkspace is actually even supposed to work on
> Windows... it probably expects lots of linuxism.

GWorkspace has *NO* linuxisms; besides linux, it runs on darwin, *BSD, solaris, etc...
Here I see a problem in the "C:\DesktopNewFolder" path; there is not the path separator that should be between "C:\Desktop" and "NewFolder".
Usually I use -stringByAppendingPathComponent: and, in the few cases when I must append a path separator by hand, I use a function that calls NSFileManager's -stringWithFileSystemRepresentation:length:; this should give correct paths also on windows.
Anyway, not having windows, I can't test anything and it's very probable that gworkspace doesn't run on it, but not due of these basical problems (path handling, etc...).