[opensuse] Setting files "hands off" for kwrite
I have these monster files that look like text enough to fool kwrite into trying to open them if the user accidentally clicks them. Users running dolphin occasionally click to focus, and accidentally launch kwrite which tries to open the file, and since they are very large, they consume all available memory, and pretty much kill opensuse 11.4. It becomes so unresponsive you have a hard time killing the task, and even if you do, X becomes non-responsive. What can settings can I make so that these files don't look like text? (They are BRU backup archives, and the extension is the only thing that distinguishes them. Internally, they look like text deep enough to fool the magic file type determination). -- _____________________________________ ---This space for rent--- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tuesday 17 May 2011 21:13:18 John Andersen wrote:
I have these monster files that look like text enough to fool kwrite into trying to open them if the user accidentally clicks them.
Users running dolphin occasionally click to focus, and accidentally launch kwrite which tries to open the file, and since they are very large, they consume all available memory, and pretty much kill opensuse 11.4.
It becomes so unresponsive you have a hard time killing the task, and even if you do, X becomes non-responsive.
What can settings can I make so that these files don't look like text?
(They are BRU backup archives, and the extension is the only thing that distinguishes them. Internally, they look like text deep enough to fool the magic file type determination).
I was going to suggest " Add a new file association for the .bru extension that does not have any file associated " but I tested it and it doesn't work - dolphin still identifies as text, kwrite still opens. I'll ask upstream about it tomorrow. As a workaround, is it possible to put the files somewhere users don't click? Will -- Will Stephenson, openSUSE Team SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 21284 (AG Nürnberg) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2011-05-17 22:01, Will Stephenson wrote:
As a workaround, is it possible to put the files somewhere users don't click?
Adjust the setting that defines the maximum memory allowed for an application, before the app is killed? Maybe a wrap script around kwrite that does it (renaming kwrite). - -- Cheers / Saludos, Carlos E. R. (from 11.2 x86_64 "Emerald" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/ iEYEARECAAYFAk3TE28ACgkQtTMYHG2NR9Vn4gCeJKtd2mDSIhQVnxOkmRglwr6P 9VgAmgLf4fz4AIbj+Hur+WcHTbtXl4QN =n1R5 -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
I have these monster files that look like text enough to fool kwrite into trying to open them if the user accidentally clicks them.
Users running dolphin occasionally click to focus, and accidentally launch kwrite which tries to open the file, and since they are very large, they consume all available memory, and pretty much kill opensuse 11.4.
It becomes so unresponsive you have a hard time killing the task, and even if you do, X becomes non-responsive.
What can settings can I make so that these files don't look like text?
(They are BRU backup archives, and the extension is the only thing that distinguishes them. Internally, they look like text deep enough to fool the magic file type determination). On KDE 3.5, with konqueror as the file browser, you can right click on
On 05/18/2011 12:43 AM, John Andersen wrote: the given file, Select Properties -> General Tab ->Type -> Edit File Type then set the programs to launch the file type. Or, in your case, remove the programs to launch the file type. I guess its not much different with dolphin either. BTW, why not use single click to select, double click to launch in the GUI so that there wont be accidental file launches ? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 5/17/2011 8:32 PM, Mihira Fernando wrote:
On KDE 3.5, with konqueror as the file browser, you can right click on the given file, Select Properties -> General Tab ->Type -> Edit File Type then set the programs to launch the file type. Or, in your case, remove the programs to launch the file type. I guess its not much different with dolphin either. BTW, why not use single click to select, double click to launch in the GUI so that there wont be accidental file launches ?
Well, as I mentioned upthread, I did indeed switch to double click to launch. But your method for kde3 probably won't work (don't have any more KDE3 machines to try it on) because as far as I can remember, the system uses "magic numbers" to determine file type EVEN when you try to tell it what extensions go with what programs. Its part of the "smarts" where linux knows the file type even if the user changes the extension. man 5 magic -- _____________________________________ ---This space for rent--- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 05/19/2011 01:53 AM, John Andersen wrote:
Well, as I mentioned upthread, I did indeed switch to double click to launch.
But your method for kde3 probably won't work (don't have any more KDE3 machines to try it on) because as far as I can remember, the system uses "magic numbers" to determine file type EVEN when you try to tell it what extensions go with what programs.
Its part of the "smarts" where linux knows the file type even if the user changes the extension.
man 5 magic I'm not suggesting that you change the extension, I'm suggesting that you change the application used to launch it. Change it from kwrite to nothing at all. As I said, on KDE 3.5, the method I mentions works. No harm in trying it with dolphin is there ? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 5/18/2011 10:41 PM, Mihira Fernando wrote:
On 05/19/2011 01:53 AM, John Andersen wrote:
Well, as I mentioned upthread, I did indeed switch to double click to launch.
But your method for kde3 probably won't work (don't have any more KDE3 machines to try it on) because as far as I can remember, the system uses "magic numbers" to determine file type EVEN when you try to tell it what extensions go with what programs.
Its part of the "smarts" where linux knows the file type even if the user changes the extension.
man 5 magic I'm not suggesting that you change the extension, I'm suggesting that you change the application used to launch it. Change it from kwrite to nothing at all. As I said, on KDE 3.5, the method I mentions works. No harm in trying it with dolphin is there ?
Well you see, the file is detected as text. (Its extension doesn't matter). Linux does not use extensions in determining what a file is. It determines that by inspection using the "file" command. If I change what program is used to open text files in KDE, or remove the assignment for text files, it will apply to ALL text files, not just these problem children. I'm not willing to forgo the system automatically knowing what to use when I double click a text file. Will posted above that he already did that test. -- _____________________________________ ---This space for rent--- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (4)
-
Carlos E. R.
-
John Andersen
-
Mihira Fernando
-
Will Stephenson