I made one change last weekend to mime types (added ".bat" to KWrite) and now I get the Sorry pop-up every time I mouse over a file in Konqueror or open the TCC.
The only recent file change I can see in:
~/.local/share/mime/ /opt/trinity/share/mimelnk ~/.local /opt/trinity/share
is: michael@local [~/.local]# find ./ -type f -mtime -4 -exec ls -al {} ; ~/.local/share/recently-used.xbel
Which seems not relevant?
TCC >> TDE Components >> File Associations “bat” shows:
- applicatoin - - x-kdeuser5 (see screenshot)
So... Where is mime type config stored? And what should be in it so it doesn’t spam Sorry pop-ups?
Thanks, Michael
[1] During this I also found out that KWrite is not in any menu?
michael@local [~/.local]# kwrite --version Qt: 3.5.0 TDE: R14.0.6 KWrite: 4.5.14 michael@local [~/.local]# which kwrite /opt/trinity/bin/kwrite
Menu >> Utilities >> Editors only has:
Kate Midnight Commander editor Kedit FeatherPad Vim
Is KWrite not suppose to have a menu entry?
On Mon, 27 Jan 2020, Michael wrote:
During this I also found out that KWrite is not in any menu?
Menu >> Utilities >> Editors only has:
Kate Midnight Commander editor Kedit FeatherPad Vim
Is KWrite not suppose to have a menu entry?
In my Ubuntu 16.04 I find it
Menu >> Utilities >> KDE >> Editors
Yes, why not Menu >> Utilities >> Editors?
Question 2. Why is it ...>> KDE >>... ?
I have NO other DE on this workstation.
Jonesy
On Monday 27 January 2020 12:00:56 pm Michael wrote:
I made one change last weekend to mime types (added ".bat" to KWrite) and now I get the Sorry pop-up every time I mouse over a file in Konqueror or open the TCC.
And it's a bug, but not sure whose though.
To fix add an empty octet-stream file associations under application.
TCC >> TDE Components >> File Associations
Click ‘application’ Click ‘Add’ Paste ‘octet-stream’ Click ‘OK’ Done
# # #
I have no idea why adding .bat to text/plain caused this though...
Best, Michael
Michael wrote:
On Monday 27 January 2020 12:00:56 pm Michael wrote:
I made one change last weekend to mime types (added ".bat" to KWrite) and
To tell TDE what to do with .bat files (or any other file extensions): Right click a .bat file and select properties, click the wrench icon, add the application(s) you want to use to open .bat files.
On Wednesday 29 January 2020 05:23:18 pm Dave Lers wrote:
Michael wrote:
On Monday 27 January 2020 12:00:56 pm Michael wrote:
I made one change last weekend to mime types (added ".bat" to KWrite) and
To tell TDE what to do with .bat files (or any other file extensions): Right click a .bat file and select properties, click the wrench icon, add the application(s) you want to use to open .bat files.
Hi Dave,
That's actually the exact steps I used to start this whole thing. I did find out later that isn’t really the preferred way, as then it becomes hard to find the change later. The seemingly recommend way is to go into File Associations and add the extension to the existing group/item it fits under.
Using wanting to edit DOS batch files as the example (e.g. add .bat to text/plain) :
TCC >> TDE Components >> File Associations
In “Known Types” Click ‘text’ Click ‘plain’
In “Filename Patterns” Click ‘Add...’ Type ‘*.bat’ Click OK Click ‘Add...’ Type ‘*.BAT’ Click OK
Like most of *nix there’s more than one way to do it, so the .bat extension could have also been added to something like application/kwrite. I’d probably prefer this last method, but my system (stock MX18/TDE) doesn’t have anything like application/kwrite.
User mime types are stored in ~/.trinity/share/mimelnk . Running find doesn’t find anything there either:
# find * -type f -iname "*kw*" application/x-kword.desktop # find * -type f -iname "*tde*" # find * -type f -iname "*kons*" application/x-konsole.desktop #
Konsole exists, but I’d guess TDE never updated mime types to TDE naming, nor probably has done anything with the defaults?
On 01/29/2020 04:29 PM, Michael wrote:
On Monday 27 January 2020 12:00:56 pm Michael wrote:
I made one change last weekend to mime types (added ".bat" to KWrite) and now I get the Sorry pop-up every time I mouse over a file in Konqueror or open the TCC.
And it's a bug, but not sure whose though.
To fix add an empty octet-stream file associations under application.
TCC >> TDE Components >> File Associations
Click ‘application’ Click ‘Add’ Paste ‘octet-stream’ Click ‘OK’ Done
Make sure for "Group" you select "application" and for "Type Name" fill in "octet-stream". That will do it.
This hasn't happened to me in a couple of years. (but prior to that would happen a couple of times per-year as I tend to tweak File Associations al lot.
[Slavek] -- you may want to check the openSUSE source -- I seem to recall this may have gotten a fix 3-4 years ago and may not have made it into the TDE git tree. I could just be getting senile too, so don't spend too much time looking, but I haven't had this issue in years on the openSUSE KDE3 builds.