Hmm...

David Timms wrote:
> Michael Riepe wrote:
> 
>>Does prefixing the filename with "file://" work?
> 
> I like your thinking !

So do I - if it helps ;-(

> dvbcut 
> file:///home/bigdisk/media/dvb/program/program.2008-03-02.22\:26\:48.mpg
> 
> dvbcut 
> file://home/bigdisk/media/dvb/program/program.2008-03-02.22\:26\:48.mpg
> 
> dvbcut 
> file:/home/bigdisk/media/dvb/program/program.2008-03-02.22\:26\:48.mpg
> 
> dvbcut 
> file:////home/bigdisk/media/dvb/program/program.2008-03-02.22\:26\:48.mpg
> 
> All the preceding attempts show a dialog:
> Failed to open file -dvbcut
> file:///home/bigdisk/media/dvb/program/program.2008-03-02.22\:26\:48.mpg: 
> open: No such file or directory

Well, open() takes the name literally, including backslashes.

> I notice that from the command line the tab completion inserts \: for 
> each colon, so I tried also without the \, like:
> dvbcut 
> file:///home/bigdisk/media/dvb/program/program.2008-03-02.22:26:48.mpg
> which also did not succeed.

I just checked it on my Linux system (using Qt 3.3.7), and I can open
files with ":" in them by just specifying the name or full path (e.g.
/disk/sda/6/DVB/A:B.ts). I can also open them from the File/Open dialog.

The problem might be caused by the file system on /home/bigdisk. I'm
using ext3fs (any other "native" Linux fs should work as well). Some
file systems, however, don't allow ":" in filenames. The variants of
Microsoft's FAT file system, for example. Although in that case you
wouldn't have been able to store the files in the first place. I'm not
sure what happens when you export an ext{2,3}fs via Samba (as opposed to
NFS which should work fine). You aren't using Mac OS X, are you?

The error message seems to come from the QUrlOperator class - more
precisely, from QUrlOperator::startOperation() - which is used inside
the QFileDialog. But I can't figure out why that blows a fuse on your
system while it works on mine. :-(

-- 
Michael "Tired" Riepe <[EMAIL PROTECTED]>
X-Tired: Each morning I get up I die a little

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
DVBCUT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dvbcut-user

Reply via email to