summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorrbuj <[email protected]>2019-08-18 13:13:00 +0200
committerlukefromdc <[email protected]>2019-08-19 02:02:20 +0000
commitabc7f2a2d2e3d77b54420d24dd6da64e010138c3 (patch)
tree3828653d4c7710b061ed016e0188e54c8643950b /data
parent50897cfb6115ee209fec80f2d5b7a5f8d96537ab (diff)
downloadcaja-abc7f2a2d2e3d77b54420d24dd6da64e010138c3.tar.bz2
caja-abc7f2a2d2e3d77b54420d24dd6da64e010138c3.tar.xz
Use absolute path of binary on desktop files
./autogen.sh --prefix=/usr && make ... GEN caja.desktop.in GEN caja.desktop GEN caja-home.desktop.in GEN caja-home.desktop GEN caja-computer.desktop.in GEN caja-computer.desktop GEN caja-folder-handler.desktop.in GEN caja-folder-handler.desktop GEN caja-file-management-properties.desktop.in GEN caja-file-management-properties.desktop GEN caja-browser.desktop.in GEN caja-browser.desktop GEN caja-autorun-software.desktop.in GEN caja-autorun-software.desktop GEN mate-network-scheme.desktop.in GEN mate-network-scheme.desktop ... grep Exec= data/*.desktop data/caja-autorun-software.desktop:TryExec=/usr/bin/caja-autorun-software data/caja-autorun-software.desktop:Exec=/usr/bin/caja-autorun-software %u data/caja-browser.desktop:TryExec=/usr/bin/caja data/caja-browser.desktop:Exec=/usr/bin/caja --no-desktop --browser %U data/caja-computer.desktop:TryExec=/usr/bin/caja data/caja-computer.desktop:Exec=/usr/bin/caja --no-desktop computer: data/caja.desktop:Exec=/usr/bin/caja data/caja-file-management-properties.desktop:Exec=/usr/bin/caja-file-management-properties data/caja-folder-handler.desktop:TryExec=/usr/bin/caja data/caja-folder-handler.desktop:Exec=/usr/bin/caja --no-desktop %U data/caja-home.desktop:TryExec=/usr/bin/caja data/caja-home.desktop:Exec=/usr/bin/caja --no-desktop data/mate-network-scheme.desktop:TryExec=/usr/bin/caja data/mate-network-scheme.desktop:Exec=/usr/bin/caja --no-desktop network:
Diffstat (limited to 'data')
-rw-r--r--data/Makefile.am26
-rw-r--r--data/caja-autorun-software.desktop.in.in (renamed from data/caja-autorun-software.desktop.in)4
-rw-r--r--data/caja-browser.desktop.in.in (renamed from data/caja-browser.desktop.in)4
-rw-r--r--data/caja-computer.desktop.in.in (renamed from data/caja-computer.desktop.in)4
-rw-r--r--data/caja-file-management-properties.desktop.in.in (renamed from data/caja-file-management-properties.desktop.in)2
-rw-r--r--data/caja-folder-handler.desktop.in.in (renamed from data/caja-folder-handler.desktop.in)4
-rw-r--r--data/caja-home.desktop.in.in (renamed from data/caja-home.desktop.in)4
-rw-r--r--data/caja.desktop.in.in (renamed from data/caja.desktop.in)2
-rw-r--r--data/mate-network-scheme.desktop.in.in13
9 files changed, 41 insertions, 22 deletions
diff --git a/data/Makefile.am b/data/Makefile.am
index 20202cf2..314241a9 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -7,17 +7,21 @@ xml_files = $(xml_in_files:.xml.in=.xml)
$(AM_V_GEN) GETTEXTDATADIR=$(top_srcdir) $(MSGFMT) --xml --template $< -d $(top_srcdir)/po -o $@
desktopdir = $(datadir)/applications
-desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
-desktop_in_files = \
- caja.desktop.in \
- caja-home.desktop.in \
- caja-computer.desktop.in \
- caja-folder-handler.desktop.in \
- caja-file-management-properties.desktop.in \
- caja-browser.desktop.in \
- caja-autorun-software.desktop.in
-%.desktop: %.desktop.in
+desktop_DATA = \
+ caja.desktop \
+ caja-home.desktop \
+ caja-computer.desktop \
+ caja-folder-handler.desktop \
+ caja-file-management-properties.desktop \
+ caja-browser.desktop \
+ caja-autorun-software.desktop \
+ mate-network-scheme.desktop
+desktop_in_files = $(desktop_DATA:.desktop=.desktop.in)
+desktop_in_in_files = $(desktop_DATA:.desktop=.desktop.in.in)
+%.desktop.in: %.desktop.in.in
$(AM_V_GEN) GETTEXTDATADIR=$(top_srcdir) $(MSGFMT) --desktop --template $< -d $(top_srcdir)/po -o $@
+%.desktop: %.desktop.in
+ $(AM_V_GEN) sed -e 's|@bindir[@]|$(bindir)|g' $< > $@
mimedir = $(datadir)/mime/packages
mime_DATA = $(xml_files)
@@ -60,12 +64,14 @@ EXTRA_DIST = $(cajadata_DATA) \
$(xml_in_files) \
$(cajadata_in_files) \
$(desktop_in_files) \
+ $(desktop_in_in_files) \
$(service_in_files) \
$(appdata_in_files) \
$(NULL)
CLEANFILES = $(xml_files) \
$(desktop_DATA) \
+ $(desktop_in_files) \
$(service_DATA) \
caja.appdata.xml \
$(NULL)
diff --git a/data/caja-autorun-software.desktop.in b/data/caja-autorun-software.desktop.in.in
index 0db85788..aa116f11 100644
--- a/data/caja-autorun-software.desktop.in
+++ b/data/caja-autorun-software.desktop.in.in
@@ -1,7 +1,7 @@
[Desktop Entry]
Name=Autorun Prompt
-TryExec=caja-autorun-software
-Exec=caja-autorun-software %u
+TryExec=@bindir@/caja-autorun-software
+Exec=@bindir@/caja-autorun-software %u
Icon=application-x-executable
NoDisplay=true
Terminal=false
diff --git a/data/caja-browser.desktop.in b/data/caja-browser.desktop.in.in
index a9a40eb0..45800040 100644
--- a/data/caja-browser.desktop.in
+++ b/data/caja-browser.desktop.in.in
@@ -2,8 +2,8 @@
Name=Caja
GenericName=File Browser
Comment=Browse the file system with the file manager
-TryExec=caja
-Exec=caja --no-desktop --browser %U
+TryExec=@bindir@/caja
+Exec=@bindir@/caja --no-desktop --browser %U
Icon=system-file-manager
Terminal=false
StartupNotify=false
diff --git a/data/caja-computer.desktop.in b/data/caja-computer.desktop.in.in
index 25c1ba24..7d638aa0 100644
--- a/data/caja-computer.desktop.in
+++ b/data/caja-computer.desktop.in.in
@@ -1,8 +1,8 @@
[Desktop Entry]
Name=Computer
Comment=Browse all local and remote disks and folders accessible from this computer
-TryExec=caja
-Exec=caja --no-desktop computer:
+TryExec=@bindir@/caja
+Exec=@bindir@/caja --no-desktop computer:
Icon=computer
Terminal=false
StartupNotify=true
diff --git a/data/caja-file-management-properties.desktop.in b/data/caja-file-management-properties.desktop.in.in
index 14ee8f24..2851a7c9 100644
--- a/data/caja-file-management-properties.desktop.in
+++ b/data/caja-file-management-properties.desktop.in.in
@@ -1,7 +1,7 @@
[Desktop Entry]
Name=File Management
Comment=Change the behaviour and appearance of file manager windows
-Exec=caja-file-management-properties
+Exec=@bindir@/caja-file-management-properties
Icon=system-file-manager
Terminal=false
Type=Application
diff --git a/data/caja-folder-handler.desktop.in b/data/caja-folder-handler.desktop.in.in
index b536bf89..017e0fdc 100644
--- a/data/caja-folder-handler.desktop.in
+++ b/data/caja-folder-handler.desktop.in.in
@@ -1,8 +1,8 @@
[Desktop Entry]
Name=Caja
GenericName=Open Folder
-TryExec=caja
-Exec=caja --no-desktop %U
+TryExec=@bindir@/caja
+Exec=@bindir@/caja --no-desktop %U
NoDisplay=true
Terminal=false
Icon=folder-open
diff --git a/data/caja-home.desktop.in b/data/caja-home.desktop.in.in
index 3aad993f..d0d1d5ba 100644
--- a/data/caja-home.desktop.in
+++ b/data/caja-home.desktop.in.in
@@ -1,8 +1,8 @@
[Desktop Entry]
Name=Home Folder
Comment=Open your personal folder
-TryExec=caja
-Exec=caja --no-desktop
+TryExec=@bindir@/caja
+Exec=@bindir@/caja --no-desktop
Icon=user-home
Terminal=false
StartupNotify=true
diff --git a/data/caja.desktop.in b/data/caja.desktop.in.in
index ce4f8340..5f109692 100644
--- a/data/caja.desktop.in
+++ b/data/caja.desktop.in.in
@@ -1,7 +1,7 @@
[Desktop Entry]
Name=Caja
GenericName=File Manager
-Exec=caja
+Exec=@bindir@/caja
Icon=system-file-manager
Terminal=false
Type=Application
diff --git a/data/mate-network-scheme.desktop.in.in b/data/mate-network-scheme.desktop.in.in
new file mode 100644
index 00000000..ca7f0a2c
--- /dev/null
+++ b/data/mate-network-scheme.desktop.in.in
@@ -0,0 +1,13 @@
+[Desktop Entry]
+Name=Network
+Comment=Browse bookmarked and local network locations
+TryExec=@bindir@/caja
+Exec=@bindir@/caja --no-desktop network:
+Terminal=false
+StartupNotify=true
+Type=Application
+Icon=network-workgroup
+Categories=GTK;System;Core;
+Keywords=bookmarks;browse;local;network;locations;MATE;
+OnlyShowIn=MATE;
+NoDisplay=true