Linux: Getting “Find” working in Dolphin on KDE (Linux Mint and Kubuntu)

One of the reasons I switched to KDE from Gnome was Dolphin, the file manager that ships with KDE.  When I made the switch a couple of years ago, the Find feature in KDE worked really well.  But some time in the last couple of years, the two distributions I’ve been using – Kubuntu and Linux Mint KDE – haven’t had the Find feature working from the base install.  I’ve muddled along without that feature for about two years (I don’t always need it, but there have been a few times when I really did need it and it didn’t work).  I finally figured out how to get it working.  It has to be one of the most ridiculously broken elements of Linux I’ve ever discovered as the solution is convoluted and counter-intuitive.

To begin with, from the base install in Dolphin, here is the Find button:

enabling find function in Dolphin in KDE

If you click it, it will open a find dialogue in the location bar at the top of Dolphin:

enabling find function in Dolphin in KDE
(click for full size)

If you try to find something, you’ll get an error message that says, “Invalid protocol” that looks like this:

enabling find function in Dolphin in KDE
(click for full size)

Dolphin has done that for the last two or three years or so, which means I haven’t been able to use this very basic feature of the file manager.

If you look around for advice on how to fix this, you’ll get mired in a bunch of forums that suggest different things about “baloo,” the new search program in KDE (that replaced Nepomuk, the failed, processor-hungry semantic search engine that no one really liked).  Here’s the problem with “baloo”: it’s not installed by default in Linux Mint KDE or Kubuntu.  That’s actually fine if you don’t need this search feature.  But, and here’s the convoluted part of this, you don’t actually use baloo for the search function in Dolphin.  However, you have to install it in order to enable the search function in Dolphin to work, but then turn baloo off.  Seriously!  It’s rather absurd and broken at the moment.

Here’s what you have to do.  First, install baloo4 from synaptic:

enabling find function in Dolphin in KDE
(click for full size)

If you try the search function now, it still won’t work.  Dolphin won’t give you the error message anymore, but it also won’t find anything.  It just gives you an empty page of results, regardless of what you search for.  But, installing baloo does something that makes enabling the Find feature possible.  If you open up System Settings, you’ll see a new icon that wasn’t there before – Desktop Search:

enabling find function in Dolphin in KDE
(click for full size)

We’ll return to that System Setting option in a minute.

Next, go back to Synaptic and install the following packages: kde-baseapps, systemsettings (probably already installed), and kfind (also probably already installed).

enabling find function in Dolphin in KDE
(click for full size)

You can still try searching in Dolphin after you’ve done this, but it won’t work.  There is one more completely counter-intuitive step.  Once you’ve installed kde-baseapps (and the other two packages), go back to the System Settings window and click on the new Desktop Search icon.  There is a check box below the window where you can exclude locations that says “Enable Desktop Search.”  Uncheck it and click “Apply”:

enabling find function in Dolphin in KDE
(click for full size)

Now, try searching in Dolphin and, voila, it works:

enabling find function in Dolphin in KDE
(click for full size)

This fix for the Find feature in a basic program in KDE is completely counter-intuitive.  In sum, in order to turn on the “search” feature, you have to install a package that you aren’t going to use, install another package that you are going to use, and then turn off the first package (baloo).  Why?  Why?  Why?

KDE programmers – I love your software!  I really, really, do.  But this makes no sense.  Can you please decide on a file/folder search solution, install it by default, and then make it a simple click of a button to turn it on or off?  This should not be anywhere close to this complicated!

 4,934 total views,  3 views today

Linux: Changing Date Format in Detailed Display in Dolphin File Manager

While there are many file managers to choose from when using a Linux-based operating system, the default file manager that comes with KDE – Dolphin – is pretty good.  I’ve run into a few issues here and there that I wish were different, but it generally does what I need.

There is one aspect of Dolphin that I always end up changing, but can never remember how, even though it is quite easy to do.  When using the “detailed” view mode in Dolphin, it displays the Date files and folders were last modified.  However, by default, it displays just the month and day the file was last modified, which isn’t very helpful when you’ve got files that are years or even decades old:

Dolphin01

Changing the Date format is quite easy, but it’s not very intuitive as it isn’t done inside Dolphin.  If you look under “Settings -> Configure Dolphin” you won’t see an option to change this:

Dolphin02

 

Dolphin03

It turns out, because of Dolphin’s close integration with KDE, the place to change the Date format is in the System Settings. Open System Settings:

Dolphin04

Once you have System Settings open, where you change this isn’t all that intuitive initially.  Click on “Locale” to open the settings specific to your location (in KDE 5 this is called “Regional Settings”):

Dolphin05

This will open a new window with a bunch of tabs.  You want the “Date & Time” tab:

Dolphin06

The setting you want to change is “Short date format:”.  You can modify this to set the Date in Dolphin however you want it.  “MM” = month. “DD” = day. “YY” = year.  If you have additional questions, you can click on the Help button at the bottom of the window (or see below for what the Help screen says about Date & Time settings).  All I want to do is add the year or “YY” to the end of the “Short date format:” like this:

Dolphin07

Once you’ve done that, hit “Apply” in the bottom right corner of the window.  Now, anywhere in the KDE desktop where the “Short date format” is displayed, it will display it how you want it.  You can go back to Dolphin and check to make sure it is working (Hint: You may need to hit F5 to refresh the display in Dolphin so the new date format will display):

Dolphin08

 

 

NOTE: Below is the information provided in the KDE Help Center about the settings for displaying the Date & Time:

Date & Time
On this tab, you can select options for how date and time values are input or displayed. The defaults are selected automatically based on the country which is currently selected.

In the Time format text box you can enter the format that you want to use to input and display times. The format entered is a combination of special codes representing time components and literal text used to separate the time components. The special time component codes are listed below. You can set the format to any combination of time components you like, but you should always include at least an hour and minutes portion to allow you to input times that are not ambiguous. The drop-down box provides a list of common time formats in your currently selected language to choose from.

  • HH – The hour as a decimal number using a 24-hour clock (00-23).
  • hH – The hour as a decimal number using a 24-hour clock (0-23).
  • PH – The hour as a decimal number using a 12-hour clock (01-12).
  • pH – The hour as a decimal number using a 12-hour clock (1-12).
  • MM – The minutes as a decimal number (00-59).
  • SS – The seconds as a decimal number (00-59).
  • AMPM – Either ‘AM’ or ‘PM’ according to the given time value. Noon is treated as ‘PM’ and midnight as ‘AM’. You should always include this code if you are using the 12-hour clock codes PH or pH to prevent ambiguity when entering times.

In the AM symbol text box you can enter the symbol that you want to use to input or display for AM when using a 12-hour clock. The drop-down box provides a list of common symbols for your currently selected language to choose from. In the PM symbol text box you can enter the symbol that you want to use to input or display for PM when using a 12-hour clock. The drop-down box provides a list of common symbols for your currently selected language to choose from.

In the Long date format text box you can enter the format that you want to use to input and display long dates. The format entered is a combination of special codes representing date components and literal text used to separate the date components. The special date component codes are listed below. You can set the format to any combination of date components you like, but you should always include at least enough components to uniquely identify a day in the year, e.g. a month and day, to allow you to input dates that are not ambiguous. If you don’t include a year component then the current year will be used. The drop-down box provides a list of common date formats in your currently selected language to choose from.

  • YYYY – The year with century as a decimal number (0000-9999).
  • YY – The year without century as a decimal number (00-99).
  • MM – The month as a decimal number (01-12).
  • mM – The month as a decimal number (1-12).
  • MONTH – The full month name.
  • SHORTMONTH – The first three characters of the month name.
  • DD – The day of month as a decimal number (01-31).
  • dD – The day of month as a decimal number (1-31).
  • WEEKDAY – The full weekday name.
  • SHORTWEEKDAY – The first three characters of the weekday name.
  • ERAYEAR – The Era Year in local format (e.g. 2000 AD).
  • SHORTERANAME – The short Era Name (e.g. AD).
  • YEARINERA – The Year in Era as a decimal number (e.g. 2000).
  • DAYOFYEAR – The Day of Year as a decimal number.
  • ISOWEEK – The ISO Week as a decimal number.
  • DAYOFISOWEEK – The Day of the ISO Week as a decimal number.

In the Short date format text box you can enter the format that you want to use to input and display short dates. This is in the same format as the Long date format, please read that section for more details. The drop-down box provides a list of common date formats in your currently selected language to choose from.

The Digit set drop down box lists digit sets which may be used instead of Arabic digits when displaying dates and times. If you select a digit set other than Arabic, it will be applied only to numbers which appear in a language context that uses that digit set while Arabic digits are still going to be used elsewhere, e.g. Arabic-Indic digits will be applied to Arabic but not to American English.

 1,579 total views,  5 views today