Gentlefolk, I need to give someone the ability to create Windows-format text documents, which I can then copy (via SMB) to a W2000 machine for further processing. I've got the file-sharing up and running, and Wine installed and running Windows Notepad OK, but I've hit a snag trying to set it up to load Notepad automatically when the file-icon is clicked :- Environment - ubuntu 6.06, gnome 2.14.2, wine 0.9.17, notepad 5.0.2140.1 create a new text-file 'home/guest/Desktop/test.txt' select it in Gnome, and right-click for menu choose 'Open with other application' in 'Use custom command' enter 'wine notepad' notepad opens with error message :- ERROR file 'ome/guest/Desktop/test.txt' does not exist do you want to create a new file ? YES NO choosing 'YES' gives 'path does not exist' I can navigate to the file via 'File Open' and it opens OK. It looks as if 'open with other application' is failing to construct the command-line argument correctly (dropping the first character ?) - is this a known problem, or have I misunderstood the process here ? TIA -- Bob Unitt
Michael Heiming
2006-Jul-18 05:30 UTC
[Wine] Re: Problem running Windows Notepad under Wine
In comp.emulators.ms-windows.wine Bob Unitt <junk@bobunitt.wanadoo.co.uk>:> Gentlefolk,> I need to give someone the ability to create Windows-format text > documents, which I can then copy (via SMB) to a W2000 machine for > further processing. I've got the file-sharing up and running, and Wine > installed and running Windows Notepad OK, but I've hit a snag trying to > set it up to load Notepad automatically when the file-icon is clicked :-Why not just use any Linux editor and run the result through unix2dos and be set? [..] -- Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94) mail: echo zvpunry@urvzvat.qr | perl -pe 'y/a-z/n-za-m/' #bofh excuse 332: suboptimal routing experience
In article <mailman.54.1153221424.25479.wine-users@winehq.org>, Ian Couchman <i.couchman@virgin.net> writes>On Tuesday 18 July 2006 11:23, Michael Heiming wrote: >> In comp.emulators.ms-windows.wine Bob Unitt <junk@bobunitt.wanadoo.co.uk>: >> > Gentlefolk, >> > >> > I need to give someone the ability to create Windows-format text >> > documents, which I can then copy (via SMB) to a W2000 machine for >> > further processing. I've got the file-sharing up and running, and Wine >> > installed and running Windows Notepad OK, but I've hit a snag trying to >> > set it up to load Notepad automatically when the file-icon is clicked :-This is now resolved, with help from the Ubuntu Beginner's Forum - I needed to enclose the 'Notepad' argument in single quotes, i.e.:- wine 'notepad' Thanks, -- Bob Unitt
Michael Heiming
2007-Mar-19 17:15 UTC
[Wine] Re: Problem running Windows Notepad under Wine
In comp.emulators.ms-windows.wine Ian Couchman <i.couchman@virgin.net>:> On Tuesday 18 July 2006 11:23, Michael Heiming wrote: >> In comp.emulators.ms-windows.wine Bob Unitt <junk@bobunitt.wanadoo.co.uk>: >> > Gentlefolk,>> > I need to give someone the ability to create Windows-format text >> > documents, which I can then copy (via SMB) to a W2000 machine for >> > further processing. I've got the file-sharing up and running, and Wine >> > installed and running Windows Notepad OK, but I've hit a snag trying to >> > set it up to load Notepad automatically when the file-icon is clicked :->> Why not just use any Linux editor and run the result through >> unix2dos and be set?>> [..]> Try using kate. This can be set up to save files with dos/windows end of line > (under settings->configure kate/open/save)Good point, just tried this with my preferred editor (vim) it does recognize file format automatically and will save with CRLF line terminators if the file opened was already in doze format. ;-) Though it is still completely beyond me why someone wants to use an editor as crappy as Notepad on Linux? -- Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94) mail: echo zvpunry@urvzvat.qr | perl -pe 'y/a-z/n-za-m/' #bofh excuse 373: Suspicious pointer corrupted virtual machine
Bob Unitt wrote:> Gentlefolk, > > I need to give someone the ability to create Windows-format text > documents, which I can then copy (via SMB) to a W2000 machine for > further processing. I've got the file-sharing up and running, and Wine > installed and running Windows Notepad OK, but I've hit a snag trying to > set it up to load Notepad automatically when the file-icon is clicked :- >That's something that has nothing to do with Wine, actually. Since you're using Ubuntu, you are probably using the GNOME desktop. Sorry, but I don't know much about GNOME. I suggest you use the gnome-mime-editor program and look for something liek application/x-plaintext or the like, and change the association to "wine notepad %" or similar, replacing the "%" with whatever meta-charater that the database uses to put the filename in the commandline for the program. Also, You can use 'vim' to make text documents with DOS line endings, that is, CR-LF (which is exactly what Windows uses). To do so, when editing your file in Vim (or gVim), or even if you want to convert a old file, use the following command: ":se ff=dos" (woithout the quotes). Then save as normal (":w"). There are also other programs, such as dos2unix which can convert UNIX text files to MS-DOS/Windows format.