LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 03-10-2019, 02:33 PM   #1
kaza
Member
 
Registered: Apr 2010
Distribution: FC17
Posts: 343

Rep: Reputation: 2
fc26 -> fc29 (KDE): how to decrease horizontal space between desktop icons?


Hello,

After recently replacing fc26 with fc29 (KDE both) I noticed that the horizontal space
between desktop icons grew, that's the width of the recrangle around the icon when
selecting it. I don't know if it's related, the longest title below icon is "Terminal 150x50"
and the width of the rectangle is just slightly wider that that, as opposed to FC26 where
the same text wrapped to form 2 lines. Maybe the new KDE code forces icon cell width
to be larger that a single line of icon title text?
Once upon a time I had similar issue because I bookmarked this advice:

https://forum.kde.org/viewtopic.php?f=289&t=136447

which advices to edit the

/usr/share/plasma/plasmoids/org.kde.desktopcontainment/contents/ui/FolderView.qml

file and in the "cellWidth" section to subtract some value from the calculation.
I did (luckily I saved the original file), rebooted, nothing changed,
so I continued with other more pressing problems.
This eveninig when I powered up and logged in, the desktop icons were "all over the place":
instead of being concentrated on the left and upper rows, most of them were spread on the
desktop in approximately diagonal fashion and worst of all, I couldn't activate any of
them - no single click selection, no double click activation, no LMB+dragging.
The desktop itself was sensible to RMB+konsole which I could open and reverted to the original

FolderView.qml

file.

Rebooted - still the same horror. Powered down, rebooted and got back my functional desktop.

Now the question: how to reduce the "cellwidth" without ruining the desktop?

Does the same file is still the one responsible for icons spacing on the desktop?
Can it be I subtracted too large a value?

What I changed was from:

Code:
                cellWidth: {
                    if (root.useListViewMode) {
                        return gridView.width;
                    } else {
                        var iconWidth = iconSize + (2 * units.largeSpacing) + (2 * units.smallSpacing);
                        if (root.isContainment && isRootView && scrollArea.viewportWidth > 0) {
                            var minIconWidth = Math.max(iconWidth, units.iconSizes.small * 8);
                            var extraWidth = calcExtraSpacing(minIconWidth, scrollArea.viewportWidth);
                            return minIconWidth + extraWidth;
                        } else {
                            return iconWidth;
                        }
                    }
                }
to:

Code:
                cellWidth: {
                    if (root.useListViewMode) {
                        return gridView.width;
                    } else {
                        var iconWidth = iconSize + (2 * units.largeSpacing) + (2 * units.smallSpacing) - 20;
                        if (root.isContainment && isRootView && scrollArea.viewportWidth > 0) {
                            var minIconWidth = Math.max(iconWidth, units.iconSizes.small * 8);
                            var extraWidth = calcExtraSpacing(minIconWidth, scrollArea.viewportWidth);
                            return minIconWidth + extraWidth;
                        } else {
                            return iconWidth;
                        }
                    }
                }


Is there anywhere a GUI configuration of that parameter, like editing a theme?

TIA,
kaza.
 
Old 03-11-2019, 02:22 PM   #2
kaza
Member
 
Registered: Apr 2010
Distribution: FC17
Posts: 343

Original Poster
Rep: Reputation: 2
More info: just turned ON the PC and again, the desktop icons were again at the same "diagonal and non-responsive"
state. Attached image of how my desktop looked, originally the icons which seems to be arranged diagonally
were on the leftmost "column" of the screen. Since this happened after I reverted the file

/usr/share/plasma/plasmoids/org.kde.desktopcontainment/contents/ui/FolderView.qml

it seems the cause is something else. Like before, a reboot solved this problem.
I'm beginning to suspect this phenomenon might be related to what I was running last before the
power down: in fc26 I ocasionally got desktop without icons if the last running thing were video clips in Firefox
viewed in "full screen" mode and SHORT TIME passes from the end of the clip to power down - if the time was
long (many minutes), I think the desktop came OK the next power up. I had a suspicion it might look like
some "lazy write" of some desktop-related file not completed if I power down shortly after the clip
but completed if I give enough time of idle PC for "lazy write" to complete. But that was in fc26,
I haven't gathered enough statistic about this phenomen in fc29 to claim it's related to video clips
in Firefox (65.0.1).

That's all the ifo I can give now (at least, what I think is relevant),
any ideas?

TIA,
kaza.
Attached Thumbnails
Click image for larger version

Name:	Photo0896_desktop_icons_shift_nonresponsive_2019_03_10.jpg
Views:	27
Size:	250.4 KB
ID:	30090  
 
Old 03-13-2019, 12:51 PM   #3
kaza
Member
 
Registered: Apr 2010
Distribution: FC17
Posts: 343

Original Poster
Rep: Reputation: 2
Some more info:

Yesterday, after playing some clips with FF in full screen
I decided to "logout" and "login" (made change
in the same FolderView.qml file and wanted to see the result
faster that by normal reboot). But I was surprized to see that
after the desktop switched off I didn't get to the usual login
promps - instead I had a blank screen. After waiting for few
minutes I decided to go to command line with "ALT+CTRL+F3",
from which I could "startx", got the same diagonally shifted and
non-responding icons, performed "logout", this time I got
to the "login" prompt and the second time - the desktop was OK.

So now it seems that after playing some full screen clips on FF
leaves something (some process?) which prevents "logout"
to complete and if I do "shutdown", it's done with some file
in a corrupted state and only an additional "logout"-"login"
(or reboot) fixes it.

Any ideas what can it be or how to "catch" whatever it is?
I'll try checking if I can catch anything with "dmesg".

TIA,
kaza.
 
  


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
[SOLVED] fc26 -> fc29: Java app "NighVision" can't start kaza Fedora 2 03-10-2019 02:05 PM
[SOLVED] fc26 -> fc29: launcher complaints it can't fine "libkdeinit5_<app name>" kaza Fedora 1 03-09-2019 02:26 PM
[SOLVED] Can HP StorageWorks 215 tape cause FC26 KDE GUI to be stuck? kaza Linux - Hardware 18 11-21-2018 01:43 PM
FC26+KDE: how to disable sddm before "Xorg -configure"? kaza Fedora 4 08-18-2017 12:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 07:50 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