Bug 266549

Summary: initial tilde character should mean home directory
Product: [Frameworks and Libraries] frameworks-kio Reporter: Christopher Yeleighton <giecrilj>
Component: PlacesAssignee: KIO Bugs <kio-bugs-null>
Status: REOPENED ---    
Severity: wishlist CC: de.meyer.maarten, kde, kdelibs-bugs-null, nate
Priority: NOR    
Version First Reported In: 5.101.0   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Christopher Yeleighton 2011-02-17 19:35:49 UTC
Version:           unspecified (using KDE 4.6.0) 
OS:                Linux

The GNU bash manual [1] contains references to the user’s home directory in the form file://~/.  Konqueror does not support that.



Reproducible: Didn't try

Steps to Reproduce:
  1. { kioclient exec file:///~/; }

Actual Results:  
  1. file:///~/ does not exist.

Expected Results:  
  1. The home directory.

OS: Linux (x86_64) release 2.6.34.7-0.7-desktop
Compiler: gcc

Note that if you want to display a file and its name actually begins with a tilde, you can use the form file:///%7E/.
Comment 1 Christopher Yeleighton 2011-02-17 21:21:05 UTC
Alternatively, one could treat file://~/ (two slashes) as a "virtual host".  That means URL like file://~/.. would not go up, but I do not envision any utility in such URL anyway.
Comment 2 Maarten De Meyer 2012-06-10 13:56:24 UTC
You can use { kioclient exec ~; } to open your home directory in your file manager.
Other folders also work { kioclient exec ~/documents; }

Does that fix this bug for you?
Comment 3 Christopher Yeleighton 2012-06-10 14:40:11 UTC
(In reply to comment #2)
> You can use { kioclient exec ~; } to open your home directory in your file
> manager.
> Other folders also work { kioclient exec ~/documents; }
> 
> Does that fix this bug for you?

No, it is a workaround that an average customer is unlikely to follow.
Comment 4 Nate Graham 2017-09-05 02:21:27 UTC
Konqueror is deprecated and Dolphin respects a tilde to mean home directory.
Comment 5 Christopher Yeleighton 2022-12-23 16:33:06 UTC
(In reply to Nate Graham from comment #4)
> Konqueror is deprecated and Dolphin respects a tilde to mean home directory.

Actual result is no result now, which is still wrong.