By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release.
Bug 2784 - Adding KWrite to the Preference list (Konqueror, *.inc) spams the system with Sorry pop ups.
Summary: Adding KWrite to the Preference list (Konqueror, *.inc) spams the system with...
Status: RESOLVED FIXED
Alias: None
Product: TDE
Classification: Unclassified
Component: tdelibs (show other bugs)
Version: R14.0.x [Trinity]
Hardware: amd64 Linux
: P5 major
Assignee: Michele Calgaro
URL:
Depends on: 2713
Blocks: R14.0.6
  Show dependency treegraph
 
Reported: 2017-06-19 17:42 CDT by Michael
Modified: 2018-12-03 20:53 CST (History)
4 users (show)

See Also:
Compiler Version: GNU 4.8.2
TDE Version String: 4:14.0.4-0ubuntu14.04.0+0
Application Version: R14.0.4
Application Name: konqueror


Attachments
Error message (8.30 KB, image/jpeg)
2017-06-19 17:42 CDT, Michael
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael 2017-06-19 17:42:02 CDT
Created attachment 2780 [details]
Error message

After adding KWrite to the preference list of a file of *.inc, through the Konqueror interface, the system is now spammed with 1,000s of pop ups saying:

Sorry - {application name}
Could not find mime type
application/octet-stream

Steps to reproduce:

Right click on file
Select ‘Properties’
Click ‘Edit file type’ button
In ‘Application Preference Order,’ click ‘Add..”
Type ‘kwrite’ [1]
Click ‘OK’

See new entry ‘Open with kwrite’ on Right click.
KWrite now opens the file.

Problem:

Now, anytime you mouse over a file, anytime you open any file of any type, anytime you try to try to access ‘KEditFileType,’ anytime you start Konqueror, ... basically everything you do now gets a ‘Sorry’ pop up.

Removing KWrite from the file association for *.inc does not fully clear the issue.  Your system still spams you continually with Sorry pop ups.  But they now only seem to be related to files that have KWrite in their Preference list (Edit:  and starting Konqueror and ???).

!Burning Question!

Where do I go to manually clean this up?

Thanks,
Michael

[1]  Notice it’s ‘kwrite’ not KWrite.  KWrite does not have a menu entry on my system.  Never have understood that, but the TDE System Settings, as shown below, knows the program as KWrite, so something else is possibly odd too.





Solutions tried:

root@local [~]# update-mime-database /usr/share/mime

logout / login

reboot



Additional Info:

>> A

Using:

michael@local [~]# kcmshell4 filetypes

[File Associations - KDE Control Module’s] application/x-php 
does not have the same ‘Application Preference Order’ as 
TDE System Settings > Default Applications > File Associations > application/x-php

KDE has 6 entries
TDE has 1 entry (KWrite)

Using Right click … ‘Application Preference Order’ in Konqueror on a *.php file shows only 1 entry (KWrite).

>> B

Adding and removing *.inc and *.INC to TDE System Settings > application/x-php does not clear the problem.

>> C

Adding *.inc and *.INC to TDE System Settings > application/x-php does add KWrite to Konqueror’s right click menu.





System Info:

TDE:  Rlease R14.0.4
PS:  Why is there no copy/paste TDE system information in the About TDE?

# cat /etc/os-release && uname -a
NAME="Ubuntu"
VERSION="14.04.5 LTS, Trusty Tahr"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 14.04.5 LTS"
VERSION_ID="14.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
Linux anon 4.2.0-27-generic #32~14.04.1-Ubuntu SMP Fri Jan 22 15:32:26 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

root@local [~]# apt-get update
{snip}
root@local [~]# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  linux-generic-lts-wily linux-headers-generic linux-headers-generic-lts-wily
  linux-image-generic-lts-wily
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.


root@local [/opt/trinity/share/mimelnk/application]# cat octet-stream.desktop
[Desktop Entry]
Type=MimeType
MimeType=application/octet-stream
X-TDE-PatternsAccuracy=0
Comment=Unknown
X-Ubuntu-Gettext-Domain=desktop_tdelibs-trinity

michael@local [~]# cat /home/michael/.local/share/applications/mimeapps.list
[Added Associations]
application/x-bittorrent=qBittorrent.desktop;tde-ktorrent.desktop;
application/x-extension-htm=firefox.desktop;
application/x-extension-html=firefox.desktop;
application/x-extension-shtml=firefox.desktop;
application/x-extension-xht=firefox.desktop;
application/x-extension-xhtml=firefox.desktop;
application/x-php=tde-kwrite.desktop;kde4-kate.desktop;gedit.desktop;tde-kate.desktop;wine-extension-txt.desktop;libreoffice-writer.desktop;
application/xhtml+xml=firefox.desktop;
text/html=firefox.desktop;
x-scheme-handler/chrome=firefox.desktop;
x-scheme-handler/ftp=firefox.desktop;
x-scheme-handler/http=firefox.desktop;
x-scheme-handler/https=firefox.desktop;

[Default Applications]
application/x-extension-htm=firefox.desktop
application/x-extension-html=firefox.desktop
application/x-extension-shtml=firefox.desktop
application/x-extension-xht=firefox.desktop
application/x-extension-xhtml=firefox.desktop
application/xhtml+xml=firefox.desktop
text/html=firefox.desktop
x-scheme-handler/chrome=firefox.desktop
x-scheme-handler/ftp=firefox.desktop
x-scheme-handler/http=firefox.desktop
x-scheme-handler/https=firefox.desktop

# locate kwrite
/home/michael/.local/share/applications/tde-kwrite.desktop
/home/michael/.trinity/share/applnk/.hidden/kwrite-3.desktop
/home/michael/.trinity/share/applnk/.hidden/kwrite.desktop
/home/michael/.trinity/share/config/kwriterc
[removed all /home/michael/.trinity/share/config/session/kwrite…]
/opt/trinity/bin/kwrite
/opt/trinity/bin/kwriteconfig
/opt/trinity/lib/libtdeinit_kwrite.so
/opt/trinity/lib/trinity/kded_kwrited.la
/opt/trinity/lib/trinity/kded_kwrited.so
/opt/trinity/lib/trinity/kwrite.la
/opt/trinity/lib/trinity/kwrite.so
/opt/trinity/share/applications/tde/kwrite.desktop
/opt/trinity/share/apps/kwrite
/opt/trinity/share/apps/kwrite/kwriteui.rc
/opt/trinity/share/doc/tde/HTML/en/kwrite
/opt/trinity/share/doc/tde/HTML/en/kwrite/common
/opt/trinity/share/doc/tde/HTML/en/kwrite/index.cache.bz2
/opt/trinity/share/doc/tde/HTML/en/kwrite/index.docbook
/opt/trinity/share/icons/crystalsvg/128x128/apps/kwrite.png
/opt/trinity/share/icons/crystalsvg/16x16/apps/kwrite.png
/opt/trinity/share/icons/crystalsvg/22x22/apps/kwrite.png
/opt/trinity/share/icons/crystalsvg/32x32/apps/kwrite.png
/opt/trinity/share/icons/crystalsvg/48x48/apps/kwrite.png
/opt/trinity/share/icons/crystalsvg/64x64/apps/kwrite.png
/opt/trinity/share/icons/hicolor/128x128/apps/kwrite.png
/opt/trinity/share/icons/hicolor/16x16/apps/kwrite.png
/opt/trinity/share/icons/hicolor/22x22/apps/kwrite.png
/opt/trinity/share/icons/hicolor/32x32/apps/kwrite.png
/opt/trinity/share/icons/hicolor/48x48/apps/kwrite.png
/opt/trinity/share/icons/hicolor/64x64/apps/kwrite.png
/opt/trinity/share/icons/hicolor/scalable/apps/kwrite2.svgz
/opt/trinity/share/pixmaps/kwrite-16.xpm
/opt/trinity/share/pixmaps/kwrite.xpm
/opt/trinity/share/services/kwrited.desktop
/opt/trinity/share/services/kded/kwrited.desktop
/usr/bin/kwriteconfig
/usr/share/app-install/desktop/kwrite:kde4__kwrite.desktop
/usr/share/doc/libssl-doc/demos/pkcs12/pkwrite.c
/usr/share/man/man1/kwrite-trinity.1.gz
/usr/share/man/man1/kwriteconfig-trinity.1.gz
/usr/share/openclipart/png/computer/icons/flat-theme/applications/kwrite.png
/usr/share/openclipart/png/computer/icons/lemon-theme/apps/kwrite.png
Comment 1 Slávek Banko 2017-06-19 19:02:46 CDT
I think the problem is basically the same as was already solved in bug 2713. Please, you can try Trinity R14.0.5~pre? See Preliminary Stable Builds repository.
Comment 2 Michael 2017-06-19 20:08:38 CDT
Hi Slávek,

Thanks for the really quick reply!

Can I also get a confirmation that I'm making the right changes to my sources.list.  The page says to use "Trusty" for 14.04, but I'm guessing that's a typo?  And it should be 'trusty?'

In any event is this correct?

Thanks tons,
Michael


## Trinity
# deb http://mirror.ppa.trinitydesktop.org/trinity/trinity-r14.0.0/ubuntu trusty main
# deb-src http://mirror.ppa.trinitydesktop.org/trinity/trinity-r14.0.0/ubuntu trusty main
# deb http://mirror.ppa.trinitydesktop.org/trinity/trinity-builddeps-r14.0.0/ubuntu trusty main
# deb-src http://mirror.ppa.trinitydesktop.org/trinity/trinity-builddeps-r14.0.0/ubuntu trusty main

# Trinity preliminary stable builds
deb http://mirror.xcer.cz/trinity-sb trusty deps-r14 main-r14
deb-src http://mirror.xcer.cz/trinity-sb trusty deps-r14 main-r14
Comment 3 Michael 2017-06-20 10:47:36 CDT
Hi TDE,

Based upon Last Modified at http://mirror.xcer.cz/trinity-sb/dists/ , the Trusty build hasn’t been updated since 20-Apr-2016?

If so, I can’t see that Slávek’s comment will help anything.  I don’t mind running a Preliminary Stable Build, but I’d rather not regress several versions doing it…

So, now 2 Qs

A)  What’s the right syntax for using a Preliminary Stable Build?
B)  What the last actual update timestamp and TDE revision number for the Preliminary Stable Build for Ubuntu, 14.04 - Trusty?

Thanks,
Michael
Comment 4 Slávek Banko 2017-06-20 11:31:05 CDT
(In reply to Michael from comment #3)
> Hi TDE,
> 
> Based upon Last Modified at http://mirror.xcer.cz/trinity-sb/dists/ , the
> Trusty build hasn’t been updated since 20-Apr-2016?
> 
> If so, I can’t see that Slávek’s comment will help anything.  I don’t mind
> running a Preliminary Stable Build, but I’d rather not regress several
> versions doing it…
> 
> So, now 2 Qs
> 
> A)  What’s the right syntax for using a Preliminary Stable Build?
> B)  What the last actual update timestamp and TDE revision number for the
> Preliminary Stable Build for Ubuntu, 14.04 - Trusty?
> 
> Thanks,
> Michael

Ad A) Yes, in sources.list the distribution names are written in lowercase, so your write in comment 2 is correct.

Ad B) You are looking at the wrong information :) The folder modification date reflects changes related to the folder itself (adding files, deleting files), but not changing according to changes in the files of this folder. You should look at the date of Release file.

If you are interested in a complete list of changes for the current R14.0.5~pre, you can look into the wiki:

https://wiki.trinitydesktop.org/Changelog_For_R14.0.5
Comment 5 Michael 2017-07-07 10:28:35 CDT
I was hoping to get to this before now, but I need to do a full system backup first (TBs), so maybe this weekend…

I added some info to the wiki pages that probably needs a review, and I did want to add this in the interim:

# which kwrite
/opt/trinity/bin/kwrite

# kwrite `which ssh04` &

# tdeio (KMimeMagic): WARNING: [bool KMimeMagic::mergeConfig(const TQString&)] KMimeMagic::mergeConfig disabled due to buggy libmagic version 514
kwrite: WARNING: [KMimeMagic::KMimeMagic()] Failed to parse /etc/trinity/magic/tdeio.magic
kwrite: WARNING: Pixmap not found for mimetype application/x-python

[1]+  Done                    kwrite `which ssh04`

# ll /etc/trinity/magic/tdeio.magic
-rw-r--r-- 1 root root 612 Dec  5  2014 /etc/trinity/magic/tdeio.magic

# cat /etc/trinity/magic/tdeio.magic
# Type: TDEIO File Types
# From: Timothy Pearson <kb9vqf@pearsoncomputing.net>
#
# TDE desktop file
0               string  [Desktop\ Entry]        application/x-desktop
!:mime  application/x-desktop
0               string  [Desktop\ Action        application/x-desktop
!:mime  application/x-desktop
0               string  [KDE\ Desktop\ Entry]   application/x-desktop
!:mime  application/x-desktop
0               string  \#\ Config\ File        application/x-desktop
!:mime  application/x-desktop
0               string  \#\ KDE\ Config\ File   application/x-desktop
!:mime  application/x-desktop
0               string  \#\ TDE\ Config\ File   application/x-desktop
!:mime  application/x-desktop#

Notes: 
- tdeio.magic is not terminated by a CR/LF, the last '#' sign is the next command prompt.
- I rarely use python, (most likely never since I built this system a year ago), so the ‘Pixmap not found’ is probably an original install event.
Comment 6 Michael 2017-12-21 15:21:36 CST
Finally found how to fix this:

Source:  http://users.telenet.be/Ice9/Linux%20stuff/Linux_tips.html
Section: Couldn't find MIME type application/octet-stream.
Reference: http://users.telenet.be/Ice9/pics/KDE_CC.png

Instructions (edited for TDE):

- Start the Trinity Control Center (» TDE Menu » Settings » Trinity Control Center)
- - Open » TDE Components  »  File Associations.

- Expand "application", you will probably see that there's no entry for "octet-stream".

- Click on "Add..."
- - "Group" select "application"
- - "Type Name" fill in "octet-stream"
Comment 7 Michele Calgaro 2018-11-02 10:04:10 CDT
Hi Michael,
can you please test and let us know if the problem persists? I just followed your steps and I don't have the problem.
As Slavek said, most likely the problem was the same as bug 2713
Comment 8 Michele Calgaro 2018-11-25 01:38:02 CST
I tested once again on a different system and still I can't reproduce this issue. Probably fix by bgug 2713 as suggested by Slavek.
Comment 9 Michele Calgaro 2018-12-03 20:53:28 CST
Since the bug seems solved as per comments below, Slavek and I have decided to close it. If you can still reproduce the problem, please reopen it and provide a way to reproduce it systematically.