Use server icon for remote folders

This icon is more accurate than the more generic applications-internet.

Includes a tdeconf_update script.

Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
pull/519/head
Mavridis Philippe 3 months ago
parent e610fb2466
commit e84954ddc1

@ -9,6 +9,8 @@
#
#################################################
add_subdirectory( tdeconf_update )
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${TDE_INCLUDE_DIR}

@ -183,7 +183,7 @@ void KNetAttach::finished()
path += name + ".desktop";
KSimpleConfig desktopFile(path, false);
desktopFile.setGroup("Desktop Entry");
desktopFile.writeEntry("Icon", "applications-internet");
desktopFile.writeEntry("Icon", "server");
desktopFile.writeEntry("Name", name);
desktopFile.writeEntry("Type", "Link");
desktopFile.writeEntry("URL", url.prettyURL());

@ -0,0 +1,18 @@
###############################################################################
# #
# Copyright © 2024 Mavridis Philippe <mavridisf@gmail.com #
# #
# Licensed under the terms of GNU General Public License v2 or later. #
# Improvements are welcome! #
# #
###############################################################################
install(
FILES remote_folder_icon.upd
DESTINATION ${KCONF_UPDATE_INSTALL_DIR}
)
install(
PROGRAMS remote_folder_icon_upd.sh
DESTINATION ${KCONF_UPDATE_INSTALL_DIR}
)

@ -0,0 +1,2 @@
Id=remote_folder_icon_update
Script=remote_folder_icon_upd.sh

@ -0,0 +1,4 @@
#!/bin/sh
find "$HOME/.trinity/share/apps/remoteview" -type f -iname "*.desktop" -print0 2>/dev/null | \
xargs -r0 sed -ri "s|Icon=applications-internet|Icon=server|g"
Loading…
Cancel
Save