I've recently came back to Ubuntu from Kubuntu, but I really like Dolphin. Is there any way how to set it up as default file manager?
Ubuntu – How to set up Dolphin as default file manager
dolphin
Related Solutions
There are several caveats in what you tried to do. I already mentioned the danger introduced by your approach:
Next time nautilus is going to be updated, your dolphin gets overwritten (as your link points there). Same goes for gnome-terminal.
So we figured, this was not a good idea :)
But there are some ways to try working around, so "x" gets run when "z" was requested -- but I'm not aware of any as soon not "z", but "/full/path/to/z" gets called. As long as it is just "z":
- creating an alias for z, like
alias z=x
(works on a per-user-level -- or globally, depending on where it was defined) - creating a "replacement" for z in a location mentioned in the PATH before the location the real z resides in
A little more details on the second approach. Taking your original problem, you want to have dolphin executed whenever nautilus is called upon. You already found nautilus at /usr/bin/nautilus
. Now let's (probably correctly) assume your $PATH
contains (in this order) /usr/local/bin:/usr/bin
-- so you see /usr/local/bin
would be searched before /usr/bin
. So we simply create a shell script /usr/local/bin/nautilus
with the following content:
#!/bin/bash
/usr/bin/dolphin %$@
So what will happen? If you (or some script/program/daemon/...) invokes nautilus
, this will execute /usr/local/bin/nautilus
(as this is the first "nautilus" found in the PATH), which simply starts /usr/bin/dolphin
-- voila! But if the "whatever" uses the full path, this won't work.
So you say: Hey, why didn't Izzy say "just do a ln -s /usr/bin/dolphin /usr/local/bin/nautilus
?" Sure you can do that -- and it will work the same. But using a script as shown may come in handy if you need to introduce additional parameters which are not passed with the original call. With above script, dolphin simply gets passed the same parameters the original call used (%$@
). But you can play around with things in the script, replace parameters, etc. As for your current problem, the link would be enough (as long as nautilus doesn't get called with the full path).
Qt Style Sheets
http://doc.qt.io/qt-5/stylesheet.html :
Qt Style Sheets are a powerful mechanism that allows you to customize the appearance of widgets...
More:
- Qt Style Sheets Examples: http://doc.qt.io/qt-5/stylesheet-examples.html
- Qt Style Sheets Reference: http://doc.qt.io/qt-5/stylesheet-reference.html
QSS & Dolphin background image
Older from the KDE Forums - How to set a pattern (image) as a wallpaper on Dolphin?: https://forum.kde.org/viewtopic.php?f=17&t=94717
and more:
- Deviantart: http://samuaz.deviantart.com/art/Kde-GaiaSnow-update-4-373661315 -> http://pastebin.com/wEnndQPw
- [SOLVED] Scaled background image using stylesheet: https://forum.qt.io/topic/40151/solved-scaled-background-image-using-stylesheet/2
Example
Making backStyle.qss:
DolphinViewContainer > DolphinView > QAbstractScrollArea {
background-color: transparent;
border-image: url('background.png') 0 0 0 0 stretch stretch;
}
and starting the Dolphin with the command:
dolphin -stylesheet /path/to/myqss/backStyle.qss
Note
The Dolphin is painting every other line with the alternate background color in the details view mode:
You could change the color but you can't edit the transparency without rebuild of the Dolphin.
Changing the .../src/kitemviews/kitemlistwidget.cpp line 118 from:
const QColor backgroundColor = m_styleOption.palette.color(QPalette::AlternateBase);
to
const QColor backgroundColor = QColor(0, 0, 0, 20);
About Qt colors: http://doc.qt.io/qt-5/qcolor.html#QColor-2
After rebuild:
Best Answer
Steps:
Open a terminal, e.g. using Ctrl+Alt+T
Install
exo-utils
by running the following command in the terminal:Run the following command in the terminal:
In the window that opens, click on Utilities
On the File Manager section, click the drop-down menu arrow + Other...
Find
/usr/share/applications
directoryAdjust to show all files and select
dolphin.desktop
(wherever you find it)Click close