Commit 27c37c1f authored by Marco Martin's avatar Marco Martin
Browse files

use TryExec to not appear when not installed

when okular active is not installed, it should not appear in the open with menu, so add TryExec to see if the executable exists
this is used instead of conditional install to make easier for distributions to package the desktop and active versions separately

BUG:314981
REVIEW:109047
parent db1eb411
......@@ -116,6 +116,7 @@ Comment[x-test]=xxViewer for various types of documentsxx
Comment[zh_CN]=可以查看多种文档的工具
Comment[zh_TW]=多種型態文件的檢視器
TryExec=active-documentviewer
Exec=active-documentviewer %u
Terminal=false
Icon=okular
......
......@@ -117,6 +117,7 @@ Comment[x-test]=xxViewer for various types of documentsxx
Comment[zh_CN]=可以查看多种文档的工具
Comment[zh_TW]=多種型態文件的檢視器
TryExec=active-documentviewer
Exec=active-documentviewer %u
Terminal=false
Icon=okular
......
......@@ -117,6 +117,7 @@ Comment[x-test]=xxViewer for various types of documentsxx
Comment[zh_CN]=可以查看多种文档的工具
Comment[zh_TW]=多種型態文件的檢視器
TryExec=active-documentviewer
Exec=active-documentviewer %u
Terminal=false
Icon=okular
......
......@@ -117,6 +117,7 @@ Comment[x-test]=xxViewer for various types of documentsxx
Comment[zh_CN]=可以查看多种文档的工具
Comment[zh_TW]=多種型態文件的檢視器
TryExec=active-documentviewer
Exec=active-documentviewer %u
Terminal=false
Icon=okular
......
......@@ -117,6 +117,7 @@ Comment[x-test]=xxViewer for various types of documentsxx
Comment[zh_CN]=可以查看多种文档的工具
Comment[zh_TW]=多種型態文件的檢視器
TryExec=active-documentviewer
Exec=active-documentviewer %u
Terminal=false
Icon=okular
......
......@@ -117,6 +117,7 @@ Comment[x-test]=xxViewer for various types of documentsxx
Comment[zh_CN]=可以查看多种文档的工具
Comment[zh_TW]=多種型態文件的檢視器
TryExec=active-documentviewer
Exec=active-documentviewer %u
Terminal=false
Icon=okular
......
......@@ -117,6 +117,7 @@ Comment[x-test]=xxViewer for various types of documentsxx
Comment[zh_CN]=可以查看多种文档的工具
Comment[zh_TW]=多種型態文件的檢視器
TryExec=active-documentviewer
Exec=active-documentviewer %u
Terminal=false
Icon=okular
......
......@@ -117,6 +117,7 @@ Comment[x-test]=xxViewer for various types of documentsxx
Comment[zh_CN]=可以查看多种文档的工具
Comment[zh_TW]=多種型態文件的檢視器
TryExec=active-documentviewer
Exec=active-documentviewer %u
Terminal=false
Icon=okular
......
......@@ -117,6 +117,7 @@ Comment[x-test]=xxViewer for various types of documentsxx
Comment[zh_CN]=可以查看多种文档的工具
Comment[zh_TW]=多種型態文件的檢視器
TryExec=active-documentviewer
Exec=active-documentviewer %u
Terminal=false
Icon=okular
......
......@@ -117,6 +117,7 @@ Comment[x-test]=xxViewer for various types of documentsxx
Comment[zh_CN]=可以查看多种文档的工具
Comment[zh_TW]=多種型態文件的檢視器
TryExec=active-documentviewer
Exec=active-documentviewer %u
Terminal=false
Icon=okular
......
......@@ -117,6 +117,7 @@ Comment[x-test]=xxViewer for various types of documentsxx
Comment[zh_CN]=可以查看多种文档的工具
Comment[zh_TW]=多種型態文件的檢視器
TryExec=active-documentviewer
Exec=active-documentviewer %u
Terminal=false
Icon=okular
......
......@@ -117,6 +117,7 @@ Comment[x-test]=xxViewer for various types of documentsxx
Comment[zh_CN]=可以查看多种文档的工具
Comment[zh_TW]=多種型態文件的檢視器
TryExec=active-documentviewer
Exec=active-documentviewer %u
Terminal=false
Icon=okular
......
......@@ -117,6 +117,7 @@ Comment[x-test]=xxViewer for various types of documentsxx
Comment[zh_CN]=可以查看多种文档的工具
Comment[zh_TW]=多種型態文件的檢視器
TryExec=active-documentviewer
Exec=active-documentviewer %u
Terminal=false
Icon=okular
......
......@@ -4,6 +4,7 @@ Name=Reader
GenericName=Document viewer
Comment=Viewer for various types of documents
TryExec=active-documentviewer
Exec=active-documentviewer %u
Terminal=false
Icon=okular
......
......@@ -117,6 +117,7 @@ Comment[x-test]=xxViewer for various types of documentsxx
Comment[zh_CN]=可以查看多种文档的工具
Comment[zh_TW]=多種型態文件的檢視器
TryExec=active-documentviewer
Exec=active-documentviewer %u
Terminal=false
Icon=okular
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment