Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[SOLVED] Text not highlighted in nemo (& other apps)

Graphical Environments, Managers, Multimedia & Desktop questions.
Post Reply
Message
Author
ChameleonScales
Posts: 40
Joined: 2019-05-14 07:09

[SOLVED] Text not highlighted in nemo (& other apps)

#1 Post by ChameleonScales »

Hi,
When I select text in some applications such as Nemo file browser and Xpad, the selection doesn't get highlighted. I could partially fix it for Nemo by changing the theme from xfce to Ultimate Maia but it still doesn't work if Nemo is open as root and doesn't fix anything for Xpad (and possibly other apps).

I tested it with multiple configurations on fresh installs of Debian XFCE edition.:
Debian 9.8 XFCE 4.12
Debian 9.9 XFCE 4.12, cinnamon 3.2 + nemo 2.2, cinnamon 3.8 + nemo 3.8

it made no difference.

Any idea how to fix this ?
Last edited by ChameleonScales on 2019-10-17 18:57, edited 2 times in total.

User avatar
pylkko
Posts: 1802
Joined: 2014-11-06 19:02

Re: Text not highlighted in nemo & other apps

#2 Post by pylkko »

Maybe you can show it in a screen capture or pic because I am no sure I understand. Nemo is a file manager, so where do you need to select text there? Also why wouold you open it as root, I have never opened any file manager as root.

ChameleonScales
Posts: 40
Joined: 2019-05-14 07:09

Re: Text not highlighted in nemo & other apps

#3 Post by ChameleonScales »

For the text in nemo, it's when I rename files. Not much to show on a screenshot, especially considering the text highlight is absent so you would see nothing.
Also, I open nemo as root very often for various reasons. I don't think I need to explain myself on that. There's a contextual menu item for it so I'm probably not the only person to use it.

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: Text not highlighted in nemo & other apps

#4 Post by GarryRicketson »

I don't know about "nemo", but it has been my experience with other file managers, a file manager that is not intended to used as root might not work as expected when you try to use it as root. There are file managers designed and made to be used by root, IE: "root thunar", MC, and there probably are others.
Generally, it is best to use the cli when working as root, all though yes, some people try using the normal user GUI's, and occasionally we get questions from them wondering how to repair the system they borked.
Post by ChameleonScales » 2019-05-18 08:12
I rename files.
Renaming system files that require root to do this is a good way to bork a system,..is there some reason you do not simply use sudo or su , like normal people would, and the CLI, ?
IE:

Code: Select all

# mv foo foo-newname
Not recommended, since the 'mv' command moves the file to one with a new name,
it is better to use 'cp'

Code: Select all

# cp foo foo-newname
That way you still have a copy of the original file, with the original name, in case whatever file name you changed does not work as expected any more.
Maybe read this:
From: https://wiki.archlinux.org/index.php/Ru ... ns_as_root Warning: All of the following methods have security implications that users should be aware of. As put by Emmanuele Bassi, a GNOME developer: "there are no *real*, substantiated, technological reasons why anybody should run a GUI application as root. By running GUI applications as an admin user you're literally running millions of lines of code that have not been audited properly to run under elevated privileges; you're also running code that will touch files inside your $HOME and may change their ownership on the file system; connect, via IPC, to even more running code, etc. You're opening up a massive, gaping security hole [...]."[1]

ChameleonScales
Posts: 40
Joined: 2019-05-14 07:09

Re: Text not highlighted in nemo & other apps

#5 Post by ChameleonScales »

Allow me to clarify myself. This problem happens on a fresh Debian install (and I would add that it happens on 2 very different computers that I tested it on, so I can guess hardware configuration is off the table).
I didn't say I was renaming files as root. I said the text selection highlighting problem occurs when I rename files (whether I'm root or not) and I could only fix it for when I use nemo as a regular user by using the Ultimate Maia theme (also works with a few others I found online).

I didn't perform any modification as root after the Debian installation and I checked for the iso's integrity with sha512 and verified its signature.

I'm pretty confident you can reproduce this issue with your computer. It's very straightforward:
- install the latest stable Debian XFCE edition
- install nemo (from the official repository deb.debian.org/debian)
- open nemo (as a regular user) and rename any file

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: Text not highlighted in nemo & other apps

#6 Post by GarryRicketson »

Why would I want to reproduce it ?
My system works fine like it is.
I would not want XFCE on my system. I like fluxbox.
I would not want nemo on my system. Thunar and root thunar work fine.
I didn't say I was renaming files as root. I said the text selection highlighting problem occurs when I rename files (whether I'm root or not) and I could only fix it for when I use nemo as a regular user by using the Ultimate Maia theme (also works with a few others I found online).
I do apologize, in your earlier posts, you gave the impression, or I misunderstood, and thought it was only when you tried to run the file manager as root.

But I might try installing this "Nemo" and see, what happens,...

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: Text not highlighted in nemo & other apps

#7 Post by GarryRicketson »

I did install "nemo", but now I will remove it, certainly don't need something like this.
Anyway:
- install nemo (from the official repository deb.debian.org/debian)
- open nemo (as a regular user) and rename any file
Could not rename any file, it did not work.

Well, any way now I see what you mean, and it is even buggier then just the text highlighting, when I select "rename files" it does not even open a window to rename them, nothing,... I also was looking at the many bug reports for this package, but did not see any on the text nor high lighting, nor on not being able to select the rename option, but there were a lot of bug reports, I regret installing it. I suggest submitting a bug report on it, if it is important to you.
Since it is not something I want to use, nor keep on my system (Debian Buster /sid on a VM), I am not interested in taking any more time on it.
==== edited ====
At least it was not very much trouble to remove, and good riddance.

ChameleonScales
Posts: 40
Joined: 2019-05-14 07:09

Re: Text not highlighted in nemo & other apps

#8 Post by ChameleonScales »

No problem.
Just so you know, this, as you say "Nemo" thingy is the default file browser of the most used linux distro worldwide (Mint) and it works like a charm on it. Also it's perfectly normal that renaming a file doesn't pop a panel, you rename directly on the file, but on Debian since you don't see the highlighted text you can't be sure you're renaming until you start typing.
Anyway, I'll try to get around this.

Kryten
Posts: 36
Joined: 2015-11-05 01:32
Location: Scotland

Re: Text not highlighted in nemo & other apps

#9 Post by Kryten »

Its all working fine in Buster +Cinnamon 3.8.8 Nemo 3.8.5
You could upgrade?

ChameleonScales
Posts: 40
Joined: 2019-05-14 07:09

Re: Text not highlighted in nemo & other apps

#10 Post by ChameleonScales »

I just tried and it still doesn't work for me (same versions). Perhaps you were trying it on the Cinnamon edition whereas I installed cinnamon and nemo from the XFCE edition?

Debian 10 does fix the xpad issue though, so I think these issues are not related.

Kryten
Posts: 36
Joined: 2015-11-05 01:32
Location: Scotland

Re: Text not highlighted in nemo & other apps

#11 Post by Kryten »

After the base system is installed you are asked which software you want,i unticked xfce and chose cinnamon desktop instead.Cinnamon is the only DE i have installed.

Might be something installed with xfce thats the cause of this?
Does it work with cinnamon only?

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: Text not highlighted in nemo & other apps

#12 Post by stevepusser »

The "root" user usually has their own theme settings. You can try a different theme for that user.
What do you mean by the "xfce" theme, anyway? I don't see that listed under Styles--do you mean Default or Greybird?
MX Linux packager and developer

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: Text not highlighted in nemo & other apps

#13 Post by GarryRicketson »

I tried it on XFCE and the text does highlight:
Image
Also the rename option works, and does give a blank window when I start typeing in the new name.
Kryten wrote:Its all working fine in Buster +Cinnamon 3.8.8 Nemo 3.8.5
You could upgrade?
I was thinking about installing Cinnamon as well, but don't see the point, "Kryten" confirms it is working,...
Image

ChameleonScales
Posts: 40
Joined: 2019-05-14 07:09

Re: Text not highlighted in nemo & other apps

#14 Post by ChameleonScales »

GarryRicketson: I don't see selected text in your screenshots. You're just showing the blue highlight when the file is selected.

stevepusser: No I really mean "xfce":
Image

Anyway, I've updated nemo to version 4 and the issue got fixed.

Kryten: are you sure you had a highlight when you selected text in Buster ? Because I talked to a nemo developer and he told me it should not work until nemo 4.0.

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: Text not highlighted in nemo & other apps

#15 Post by GarryRicketson »


Text not highlighted in nemo & other apps

Postby ChameleonScales » 2019-05-14 02:26
Hi,
When I select text in some applications such as Nemo file browser and Xpad, the selection doesn't get highlighted.
I am sorry, I thought that was the problem , based on your first post, so guess I don't understand what the problem for you is, any way, hope you get it worked out,

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: Text not highlighted in nemo & other apps

#16 Post by stevepusser »

Where are you getting Cinnamon 3.8 and 4.0 package builds for Stretch, anyway? Those aren't in stretch-backports, and I think you should provide this critical information if going outside Debian or mixing Debian releases for them.
MX Linux packager and developer

Kryten
Posts: 36
Joined: 2015-11-05 01:32
Location: Scotland

Re: Text not highlighted in nemo & other apps

#17 Post by Kryten »

ChamelionScales-all text that is possible to select in nemo is highlighted when i select it.?
All versions of nemo i have ever run havent had that problem.Its a basic OS function
,so i dont know what the "only possible till nemo4 " is all about.

Anyway at least nemo 4 has fixed it for you.How did you get it?

ChameleonScales
Posts: 40
Joined: 2019-05-14 07:09

Re: Text not highlighted in nemo & other apps

#18 Post by ChameleonScales »

I built nemo from source.
I also downloaded some dependencies on https://pkgs.org

It required me to install many dependencies, overwriting already installed older versions so I know it's risky but I did it on a test machine and so far I didn't encounter any problem. I'll let you know if I do.

ChameleonScales
Posts: 40
Joined: 2019-05-14 07:09

Re: Text not highlighted in nemo & other apps

#19 Post by ChameleonScales »

To my surprise, after upgrading to Debian 10.1, the issue was still there. I guess we'll have to wait another 2 years to get Nemo 4 in the repos of a stable Debian release.

ChameleonScales
Posts: 40
Joined: 2019-05-14 07:09

Re: Text not highlighted in nemo & other apps

#20 Post by ChameleonScales »

QUICK & EASY FIX FOUND !!
Works on both Debian 9 and 10 (XFCE and Cinnamon editions):
Paste the following css code in ~/.config/gtk-3.0/gtk.css

Code: Select all

/* Things that can traditionally be controlled by the user theme, but that we *must*
 * have regardless, for a usable application.  A couple things that we cannot do without. */

/* Inactive F3 pane shading */

.nemo-window .nemo-inactive-pane .view, .nemo-window .nemo-inactive-pane iconview {
    background-color: @theme_unfocused_bg_color;
}

/* Rename box styling in the icon view. */

.nemo-window .nemo-window-pane widget.entry {
    border: 1px solid;
    border-radius: 3px;
    color: @theme_fg_color;
    border-color: @theme_selected_bg_color;
    background-color: @theme_bg_color;
}

.nemo-window .nemo-window-pane widget.entry:selected {
    border: 1px solid;
    border-radius: 3px;
    color: @theme_selected_fg_color;
    border-color: @theme_selected_bg_color;
    background-color: @theme_selected_bg_color;
}
Then log out and back in.
You should now see the highlighted text when renaming a file while in Icon View mode.

Solution was found on this github issue: https://github.com/linuxmint/nemo/issues/1173

Post Reply