summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/CMakeL10n.txt9
-rw-r--r--src/CMakeLists.txt15
-rw-r--r--src/locate.desktop3
-rw-r--r--src/locate.protocol7
-rw-r--r--src/locater.protocol7
-rw-r--r--src/rlocate.protocol7
6 files changed, 33 insertions, 15 deletions
diff --git a/src/CMakeL10n.txt b/src/CMakeL10n.txt
index b95d5c5..ab9a2bc 100644
--- a/src/CMakeL10n.txt
+++ b/src/CMakeL10n.txt
@@ -1,3 +1,10 @@
##### create translation templates ##############
-tde_l10n_create_template( "tdeio-locate" )
+tde_l10n_create_template( "messages/tdeio-locate" )
+
+tde_l10n_create_template(
+ CATALOG "desktop_files/tdeio-locate-desktops"
+ SOURCES
+ *.desktop
+ *.protocol
+)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 0e58011..7943241 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -25,10 +25,17 @@ link_directories(
##### other data ################################
-install( FILES locate.protocol DESTINATION ${SERVICES_INSTALL_DIR} )
-install( FILES locater.protocol DESTINATION ${SERVICES_INSTALL_DIR} )
-install( FILES rlocate.protocol DESTINATION ${SERVICES_INSTALL_DIR} )
-install( FILES locate.desktop DESTINATION ${SERVICES_INSTALL_DIR}/searchproviders )
+tde_create_translated_desktop(
+ SOURCE
+ locate.protocol
+ locater.protocol
+ rlocate.protocol
+ DESTINATION ${SERVICES_INSTALL_DIR}
+)
+tde_create_translated_desktop(
+ SOURCE locate.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}/searchproviders
+)
##### tdeio_locate ##############################
diff --git a/src/locate.desktop b/src/locate.desktop
index a218ffa..000c7ed 100644
--- a/src/locate.desktop
+++ b/src/locate.desktop
@@ -1,7 +1,8 @@
[Desktop Entry]
+Name=locate - Search for local files
+
Encoding=UTF-8
Type=Service
-Name=locate - Search for local files
X-TDE-ServiceTypes=SearchProvider
Keys=locate
Query=locate:\\{@}
diff --git a/src/locate.protocol b/src/locate.protocol
index 179561d..c69bcc1 100644
--- a/src/locate.protocol
+++ b/src/locate.protocol
@@ -1,12 +1,13 @@
[Protocol]
-exec=tdeio_locate
+Description=TDE I/O Slave for the locate command
+
protocol=locate
+Icon=edit-find
+exec=tdeio_locate
input=none
output=filesystem
listing=Name,Type,Size,Date,AccessDate,Access,Owner,Group,Link
reading=true
-Icon=edit-find
-Description=TDE I/O Slave for the locate command
# Using this will e.g. display previews etc.
Class=:local
diff --git a/src/locater.protocol b/src/locater.protocol
index cac299c..ac40189 100644
--- a/src/locater.protocol
+++ b/src/locater.protocol
@@ -1,12 +1,13 @@
[Protocol]
-exec=tdeio_locate
+Description=TDE I/O Slave for the locate command
+
protocol=locater
+Icon=edit-find
+exec=tdeio_locate
input=none
output=filesystem
listing=Name,Type,Size,Date,AccessDate,Access,Owner,Group,Link
reading=true
-Icon=edit-find
-Description=TDE I/O Slave for the locate command
# Using this will e.g. display previews etc.
Class=:local
diff --git a/src/rlocate.protocol b/src/rlocate.protocol
index 4b4802b..1cbfa88 100644
--- a/src/rlocate.protocol
+++ b/src/rlocate.protocol
@@ -1,12 +1,13 @@
[Protocol]
-exec=tdeio_locate
+Description=TDE I/O Slave for the locate command
+
protocol=rlocate
+Icon=edit-find
+exec=tdeio_locate
input=none
output=filesystem
listing=Name,Type,Size,Date,AccessDate,Access,Owner,Group,Link
reading=true
-Icon=edit-find
-Description=TDE I/O Slave for the locate command
# Using this will e.g. display previews etc.
Class=:local