Just by chance I realized today that a highly confidential word document (for me…) was cached multiple times
in folders (e.g. /2338_0) below /home/~/.cache/kioexec/krun/…
Looks like those copies have been generated by Dolphin when I navigated to some samba share of my
file server (e.g.: smb://myserver/someshare/) and opened this document (after having it decrypted temporarily with PGP)
Is there any chance to avoid such copies to be auto-generated by Dolphin or associated code?
That’s done by KIO (KDE’s network-transparent file IO framework), if you browse to smb:// in dolphin and open a file with a non-KDE application (that doesn’t support/use KIO). And that’s “necessary” because that application wouldn’t be able to access the file otherwise.
To avoid this, mount the share first and browse to the mount point in dolphin, so that the files are “local” and can be accessed by every application.
You can do that with something like “sudo mount //HOST/SHARE mountpoint”, or use smb4k (but install it from KDE:Extra, the standard version has mounting disabled because it is considered to be a security risk).
With all older openSUSE versions (i.e. 13.1) I used to mount my samba shares with smb4k - but now, with Leap, I failed and didn’t find any hint how to fix it…
So thanks again for helping with that problem too!
Thales:~ # zypper addrepo https://download.opensuse.org/repositories/KDE:Extra/openSUSE_Leap_42.3/KDE:Extra.repo
Download (curl) error for 'https://download.opensuse.org/repositories/KDE:Extra/openSUSE_Leap_42.3/KDE:Extra.repo':
Error code: Bad URL
Error message: Protocol http not supported or disabled in libcurl
Strange, as I was specifying the URL which used the https protocol… which sounds fine, as libcurl mentioned that http is unsupported.
However, I tried again, but this time with http protocol:
Thales:~ # zypper addrepo http://download.opensuse.org/repositories/KDE:Extra/openSUSE_Leap_42.3/KDE:Extra.repo
Adding repository 'Additional packages maintained by the KDE team (openSUSE_Leap_42.3)' ....................................................................................................................................[done]
Repository 'Additional packages maintained by the KDE team (openSUSE_Leap_42.3)' successfully added
URI : http://download.opensuse.org/repositories/KDE:/Extra/openSUSE_Leap_42.3/
Enabled : Yes
GPG Check : Yes
Autorefresh : No
Priority : 99 (default priority)
Repository priorities are without effect. All enabled repositories share the same priority.
This did the trick and I then could successfully install smb4k.
When I checked the protocols used in all other reps I found out that all of them are “http” !
So my questions are:
Is it normal to have just http repos?
Why does the https URL version fail with the KDE:Extra repo?
After some research I might be able to give the answers by myself:
Question 1: is it normal to have just http repos?
Yes, this is totally normal.
Question 2: Why does the https URL version fail with the KDE:Extra repo?
Because the https protocol is not supported/enabled in libcurl… BUT the error message “Error message: Protocol http not supported or disabled in libcurl” seems to have a typo: It should be “https” instead of “http”.
The problem has nothing to do with the repo “KDE:Extra” used here.
Btw, you find the KDE:Extra repo also listed in YaST->Software Repositories, if you click Add and choose “Community Repositories”…
Hm, I doubt that this is the reason, because curl can use https:// just fine.
Looks rather like a “server problem”:
$ curl https://download.opensuse.org/repositories/KDE:Extra/openSUSE_Leap_42.3/KDE:Extra.repo
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>301 Moved Permanently</title>
</head><body>
<h1>Moved Permanently</h1>
<p>The document has moved <a href="http://download.opensuse.org/repositories/KDE:/Extra/
openSUSE_Leap_42.3/KDE:Extra.repo">here</a>.</p>
<hr>
<address>Apache/2.2.34 (Linux/SUSE) Server at download.opensuse.org Port 443</address>
</body></html>
(and/or curl/zypper not following the 301 redirection…)
Yes. That openSUSE download server still does not support https, is indeed server problem.
(and/or curl/zypper not following the 301 redirection…)
It does follow 301 redirection, but zypper explicitly restricts redirection to https only in this case. Note that error message says **“**Protocol http not supported or disabled in libcurl”, not https:
bor@bor-Latitude-E5450:~$ curl --proto-redir =https --location https://download.opensuse.org/repositories/KDE:Extra/openSUSE_Leap_42.3/KDE:Extra.repo
curl: (1) Protocol "http" not supported or disabled in libcurl
OK, but it does understand that extra ‘/’ is missing in original URL and correctly redirects; is it possible to make it redirect to https URL in this case? Alternatively simply returning 404 would probably be less confusing.