Add section related to resolution of issue TDE/tdebase#1. #194
Merged
SlavekB
merged 1 commits from issue/1
into master
3 years ago
Loading…
Reference in new issue
There is no content yet.
Delete Branch 'issue/1'
Deleting a branch is permanent. It CANNOT be undone. Continue?
Hope I've done it correctly.
I have tested this and it seems to work.
Great, I will run a test here tomorrow and let you know.
Looks good at first sight. If I can suggest a small improvement, instead of "grep && sed+Log" you could use the same structure used in other cases "if grep -> sed + log" (see example just above your changes here ). Yes, Slavek and I can be a bit annoying sometimes with the changes we ask for 😅
the above just for code consistency
Well, at least I tried to be consistent... or else I would have used
test
instead ofif
;-)I'll make the proposed change right now.
762067ef20
to9713c57a68
3 years agoDone
Added section related to resolution of issue TDE/tdebase#1.to Add section related to resolution of issue TDE/tdebase#1. 3 years agoHi Philippe,
I tested this together with TDE/tdelibs#129.
It works great if the user has the "text-x-generic-new" in his cache. It fails oherwise.
One of the users on my computer had a different icon there (not sure why but that is what it was) and the check failed to detect that.
Possible solutions:
we remove the complete cache line from the konq_history file. A bit intrusive, but I think the side effects are none and it is easy to implement. Would work regardless of what icon was there before
match exactly only the "/" entry in that file and discard whatever icon is there. Trickier to get it right compared to point 1.
What do you think?
Needs changes as per comments.
# Remove Konqueror's icon cache entry for / (issue TDE/tdebase#1)
if [ "$R14_VERSION" -lt "202103280" ]; then
if [ "`grep "/,text-x-generic-new[,]*" ${TDEHOME}/share/config/konq_history`" ]; then
This would match any entry ending in / and followed by that icon. For example I have some entries that ends in /.
I suggest we check for either "=/," (first entry in the line) or ",/," (clean / entry).
Resolved in 151a847b1b.
# Remove Konqueror's icon cache entry for / (issue TDE/tdebase#1)
if [ "$R14_VERSION" -lt "202103280" ]; then
if [ "`grep "/,text-x-generic-new[,]*" ${TDEHOME}/share/config/konq_history`" ]; then
sed -i "s:/,text-x-generic-new[,]*::g" ${TDEHOME}/share/config/konq_history
There is a trailing space at the end of the line 1015 (sed line). Since I have requested changes already, I am pointing out this one too 😃
Resolved in e0be8fcc0c.
Thanks, this should do the job. I will rebuild and test!
Great, works fine even with that account that failed the previous test. If you can squash the commit, then I will merge.
e0be8fcc0c
toab9ca7de7f
3 years agoDone, sorry for the delay
ab9ca7de7f
into master 3 years agoReviewers
ab9ca7de7f
.