LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-16-2007, 02:01 PM   #1
ravi_npatty
LQ Newbie
 
Registered: Feb 2007
Distribution: Mandriva, Vector Linux
Posts: 17

Rep: Reputation: 0
Question Cant open .dat files (video) by double clicking though I can open it by openwith..


Hello,

I am new to linux. I am using Fedora Core 6. I have configured xine and mplayer for playing my video files. Some of my video files have extension .dat Those files are on a DVD, so I cant rename those files. Double clicking on it doesn't open in default application (xine), instead it gives a security error. All other extensions like avi and mpg plays well except .dat. However I am able to play .dat files by right clicking on it and using open with. Can anyone help me why double clicking doesn't work!!

The exact error message as shown in the dialog window is below,
------------------------------------------------------------------------------
Cannot open rojapontho.DAT
The filename "rojapontho.DAT" indicates that this file is of type "dat document". The contents of the file indicate that the file is of type "AVI video". If you open this file, the file might present a security risk to your system.

Do not open the file unless you created the file yourself, or received the file from a trusted source. To open the file, rename the file to the correct extension for "AVI video", then open the file normally. Alternatively, use the Open With menu to choose a specific application for the file.
------------------------------------------------------------------------------

I hope by doing some minor change in some settings this can be solved. Kindly help me.
 
Old 07-16-2007, 04:28 PM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
If you right-click on the file, a menu will pop up. If the application you want isn't in the list, select "Open With"->"Open with Other Application". Enter the player you want (e.g., /usr/bin/mplayer). It will now appear in the "Open With" menu.
 
Old 07-18-2007, 02:10 AM   #3
ravi_npatty
LQ Newbie
 
Registered: Feb 2007
Distribution: Mandriva, Vector Linux
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by macemoneta
If you right-click on the file, a menu will pop up. If the application you want isn't in the list, select "Open With"->"Open with Other Application". Enter the player you want (e.g., /usr/bin/mplayer). It will now appear in the "Open With" menu.
In my query itself I mentioned I am able to play dat files by right clicking and using openwith. I just want to know, is it possible to disable "that security feature", which prevents opening files, when the extension does not match with the content. Thanks for your interest in helping me.
 
Old 07-18-2007, 03:17 AM   #4
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
I'm not seeing the problem on FC6. I placed an avi in a .dat file, and Nautilus correctly identifies it as an avi, offering to open it with a media player. Are you current in your maintenance?
 
Old 07-19-2007, 10:23 AM   #5
ravi_npatty
LQ Newbie
 
Registered: Feb 2007
Distribution: Mandriva, Vector Linux
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by macemoneta
I'm not seeing the problem on FC6. I placed an avi in a .dat file, and Nautilus correctly identifies it as an avi, offering to open it with a media player. Are you current in your maintenance?
I dont understand what maintenance I need to do. But in my system also it identifies the content. But it does not allow to open on double clicking. This may be due to some SELinux setting (I doubt). But I tried something, and I couldn't find out what exactly I need to do.
 
Old 07-19-2007, 10:31 AM   #6
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
SELinux is not involved in this. As to maintenance:

yum -y update
 
Old 07-19-2007, 10:42 AM   #7
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
Have you tried right-clicking on one of those files, selecting Properties and setting mplayer or vlc as the default player for that type of file? Once you have done so, double-clicking should work fine.
 
Old 07-20-2007, 07:48 AM   #8
ravi_npatty
LQ Newbie
 
Registered: Feb 2007
Distribution: Mandriva, Vector Linux
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jay73
Have you tried right-clicking on one of those files, selecting Properties and setting mplayer or vlc as the default player for that type of file? Once you have done so, double-clicking should work fine.
I have set mplayer as default player. But still it doesn't open automatically. it says it is not safe to open and it offers only cancel button. However the dialogbox says I can do it by right clicking and open with. I tried that one and it works (As I mentioned earlier). What I dont understand is that if other machines can open avi video in a .dat file, why not my machine? What is the problem with my machine?
 
Old 07-20-2007, 09:50 AM   #9
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
You never answered the question about maintenance; are you running current software?
 
Old 07-24-2007, 10:26 AM   #10
ravi_npatty
LQ Newbie
 
Registered: Feb 2007
Distribution: Mandriva, Vector Linux
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by macemoneta
You never answered the question about maintenance; are you running current software?
Quote:
Originally Posted by macemoneta
You never answered the question about maintenance; are you running current software?
Sorry for the delayed reply.

I tried to update. But it was taking very long time. So I canceled the process. I would like to tell you that I am using only dial up internet connection with speed about 40 kbps. So is there any way to do off line update? I mean downloading the update file in some other computer, taking it through pen drive and updating my computer. (Like Windows auto patcher)

If I didn't update, what can go wrong? Still I think, I should be able to open files based on the content irrespective of its extension.

Please tell me if I can update only few components which are responsible for this problem. Because I cant think about full update again as it may take time even in days.

Please don't mind my delay in reply. Please help me.
 
Old 07-24-2007, 10:49 AM   #11
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Quote:
Originally Posted by ravi_npatty
Sorry for the delayed reply.

I tried to update. But it was taking very long time. So I canceled the process.
Canceling an update is not a good idea. It can leave your machine in an unstable state. All modern OS depend on network connections (or at least the availability of a machine with a fast connection to download maintenance).

Quote:
I would like to tell you that I am using only dial up internet connection with speed about 40 kbps. So is there any way to do off line update? I mean downloading the update file in some other computer, taking it through pen drive and updating my computer. (Like Windows auto patcher)
Yes, you can do this. It's a very commonly asked question. Search for: fedora create a local yum repository

However, you will need a big pen drive. Fedora 6 has many gigabytes of updates at this point. Applying maintenance doesn't download that much, as only the needed updates are applied.

Quote:
If I didn't update, what can go wrong? Still I think, I should be able to open files based on the content irrespective of its extension.
You expect software to be fixed without installing the fixes? Do you believe in magic too?

Quote:
Please tell me if I can update only few components which are responsible for this problem. Because I cant think about full update again as it may take time even in days.
The problem is that software has dependencies (requisites), so frequently, asking for only one package will require many other packages so that they inter-operate correctly.

Quote:
Please don't mind my delay in reply. Please help me.
No problem.
 
Old 07-28-2007, 08:31 AM   #12
ravi_npatty
LQ Newbie
 
Registered: Feb 2007
Distribution: Mandriva, Vector Linux
Posts: 17

Original Poster
Rep: Reputation: 0
Please help me resolve the conflict while updating

I took my computer to my friends home for broadband access and I tried updating. I manged to download all the rpm files(it took 18 hours for download), but while updating I got an error message saying "Error: hplip conflicts with selinux-policy < 2.4.6-52" and the update process terminated. I have all the rpms in /var/cache/yum/updates/packages. I hope I can use these rpms again instead downloading. Please help me to resolve the conflict.
 
Old 07-28-2007, 09:48 AM   #13
ravi_npatty
LQ Newbie
 
Registered: Feb 2007
Distribution: Mandriva, Vector Linux
Posts: 17

Original Poster
Rep: Reputation: 0
Successfully updated. But the problem still persists

I reinstalled the package selinux (by removing it and installing a fresh copy). After this I could successfully update using 'yum update'. I again checked whether the update is complete by 'Main menu/System Tools/Software Updater'. It said there is no packages available for your computer. So my system is completely updated.

But the problem still persists. I am unable to open .dat files by double clicking. What else can I do? Please help me.
 
Old 07-28-2007, 09:55 AM   #14
ravi_npatty
LQ Newbie
 
Registered: Feb 2007
Distribution: Mandriva, Vector Linux
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by macemoneta
Canceling an update is not a good idea. It can leave your machine in an unstable state.
Yes, I agree with you. But, I think it is true when the update process start installing the packages. When I canceled the update last time, it was not even finished checking the availability of packages. So canceling at that stage should not have done any harm to my computer, I suppose. If I am wrong please correct me.
 
Old 07-28-2007, 11:22 AM   #15
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
OK, the only two things I can think of at this point are that either an association has been set incorrectly as a result of a bug before the software update, or that the mime database was not updated correctly as a result of a bug in the maintenance before the update.

You can try to fix the first problem by:

Code:
rm -f ~/.local/share/mime/globs
Then logoff and log back in. This will remove any associations you've set in Nautilus, setting them back to default.

If it's still a problem, then as root:

Code:
update-mime-database /usr/share/mime
Then logoff and log back in. This will recreate the system file association list.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to open .dat files imyself Linux - Software 2 07-29-2006 05:58 PM
How to set double click to open video in full screen in mplayer ankur_linuxfan Linux - Software 1 05-14-2005 04:33 AM
How can I open WMV files by Double Click? WhiteTree Linux - Software 4 03-26-2005 05:52 PM
Howto open files w/ double-click, not one? in Konqueror Steel Shepherd Linux - Newbie 3 02-19-2004 05:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration