[gedit-latex] Use gvfs-open instead of deprecated gnome-open
- From: Vincent Untz <vuntz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit-latex] Use gvfs-open instead of deprecated gnome-open
- Date: Thu, 6 Oct 2011 12:55:49 +0000 (UTC)
commit 4166f494ca26e1ef0540652fc1658e9dc31e6a0d
Author: Vincent Untz <vuntz gnome org>
Date: Thu Oct 6 14:55:40 2011 +0200
Use gvfs-open instead of deprecated gnome-open
https://bugzilla.gnome.org/show_bug.cgi?id=661076
data/tools.xml | 8 ++++----
latex/latex/preview.py | 2 +-
latex/latex/views.py | 4 ++--
3 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/data/tools.xml b/data/tools.xml
index c5f6483..1f0811f 100644
--- a/data/tools.xml
+++ b/data/tools.xml
@@ -1,15 +1,15 @@
<tools>
<tool description="Create a PDF from LaTeX source" extensions=".tex" id="1" label="LaTeX â PDF">
<job mustSucceed="True" postProcessor="RubberPostProcessor">rubber --inplace --maxerr -1 --short --force --warn all --pdf "$filename"</job>
- <job mustSucceed="True" postProcessor="GenericPostProcessor">gnome-open "$shortname.pdf"</job>
+ <job mustSucceed="True" postProcessor="GenericPostProcessor">gvfs-open "$shortname.pdf"</job>
</tool>
<tool description="Create a PostScript from LaTeX source" extensions=".tex" id="3" label="LaTeX â PS">
<job mustSucceed="true" postProcessor="RubberPostProcessor">rubber --inplace --maxerr -1 --short --force --warn all --ps "$filename"</job>
- <job mustSucceed="true" postProcessor="GenericPostProcessor">gnome-open "$shortname.ps"</job>
+ <job mustSucceed="true" postProcessor="GenericPostProcessor">gvfs-open "$shortname.ps"</job>
</tool>
<tool description="Create a DVI from LaTeX source" extensions=".tex" id="4" label="LaTeX â DVI">
<job mustSucceed="true" postProcessor="RubberPostProcessor">rubber --inplace --maxerr -1 --short --force --warn all "$filename"</job>
- <job mustSucceed="true" postProcessor="GenericPostProcessor">gnome-open "$shortname.dvi"</job>
+ <job mustSucceed="true" postProcessor="GenericPostProcessor">gvfs-open "$shortname.dvi"</job>
</tool>
<tool description="Create a DVI with source specials from LaTeX source" extensions=".tex" id="5" label="LaTeX â DVI (Source Specials)">
<job mustSucceed="true" postProcessor="LaTeXPostProcessor">latex -interaction batchmode -src "$filename"</job>
@@ -19,7 +19,7 @@
<tool description="Process R Sweave file and create a PDF from the resulting LaTeX source" extensions=".Rnw" id="6" label="R Sweave â PDF">
<job mustSucceed="true" postProcessor="GenericPostProcessor">R CMD Sweave "$shortname.Rnw"</job>
<job mustSucceed="true" postProcessor="RubberPostProcessor">rubber --inplace --maxerr -1 --short --force --warn all --pdf "$shortname.tex"</job>
- <job mustSucceed="true" postProcessor="GenericPostProcessor">gnome-open "$shortname.pdf"</job>
+ <job mustSucceed="true" postProcessor="GenericPostProcessor">gvfs-open "$shortname.pdf"</job>
</tool>
<tool description="Remove LaTeX build files" extensions=".tex" id="7" label="Cleanup LaTeX Build Files">
<job mustSucceed="False" postProcessor="GenericPostProcessor">rm -f "$directory"/*.aux "$directory"/*.log "$directory"/*.toc "$directory"/*.bbl "$directory"/*.blg</job>
diff --git a/latex/latex/preview.py b/latex/latex/preview.py
index 0b08c95..c710737 100644
--- a/latex/latex/preview.py
+++ b/latex/latex/preview.py
@@ -97,7 +97,7 @@ class ImageToolGenerator(object):
if self.open:
extension = {self.FORMAT_PNG : "png", self.FORMAT_JPEG: "jpg", self.FORMAT_GIF : "gif"}[self.format]
- tool.jobs.append(Job("gnome-open \"$shortname.%s\"" % extension, True, GenericPostProcessor))
+ tool.jobs.append(Job("gvfs-open \"$shortname.%s\"" % extension, True, GenericPostProcessor))
return tool
diff --git a/latex/latex/views.py b/latex/latex/views.py
index cdad4a9..08451a5 100644
--- a/latex/latex/views.py
+++ b/latex/latex/views.py
@@ -236,7 +236,7 @@ class LaTeXOutlineView(BaseOutlineView):
@param node: an instance of latex.outline.OutlineNode
"""
if node.type == OutlineNode.GRAPHICS:
- # use 'gnome-open' to open the graphics file
+ # use 'gvfs-open' to open the graphics file
target = node.value
@@ -263,7 +263,7 @@ class LaTeXOutlineView(BaseOutlineView):
LOG.error("LatexOutline: File not found: %s" % filename)
return
- system("gnome-open %s" % f.uri)
+ system("gvfs-open %s" % f.uri)
else:
# open/activate the referenced file, if the node is 'foreign'
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]