[PATCH] UDS_TARGET_URL and UDS_DISPLAY_NAME
vladc6 at yahoo.com
Fri Feb 22 08:07:50 GMT 2008
--- nf2 <nf2 at scheinwelt.at> wrote:
> This patch adds two new field types to KIO::UDSEntry:
> UDS_TARGET_URL: for special file-items pointing to a different
> (quite useful in remote:// and smb://workgroup,...). The
> filemanegers/-dialogs can open the target-url instantly when you
> on such an item. Therefore you don't need the redirection() trick
> UDS_DISPLAY_NAME: this optional field sets m_strText in KFileItem
> (overrides UDS_NAME) to display a label different from the real
> The first patch also makes KDirOperator switch the Url instantly
> you click on a file-item which has UDS_TARGET_URL set. Therefore
> file-dialogs follow such links appropriately. The second patch
> implements the same feature for Dolphin. Unfortunately I didn't find
> right code in Konqueror yet to add this feature.
I don't think it's wise to implement a URL redirection scheme that
requires every single KDE app to be individually modified in order to
make it aware of the redirection. This introduces a number of
loopholes, such as when a URL is acquired from anywhere except the
file dialog. For example, passing a URL to an application on the
command line will result in that URL remaining untranslated.
Never miss a thing. Make Yahoo your home page.
More information about the kde-core-devel