app-editors/sublime-text: Fix "open with" in Nautilus
authorDavid Seifert <soap@gentoo.org>
Sat, 19 Oct 2019 09:53:49 +0000 (11:53 +0200)
committerDavid Seifert <soap@gentoo.org>
Sat, 19 Oct 2019 09:53:49 +0000 (11:53 +0200)
Closes: https://bugs.gentoo.org/698016
Package-Manager: Portage-2.3.77, Repoman-2.3.17
Signed-off-by: David Seifert <soap@gentoo.org>
app-editors/sublime-text/sublime-text-3_p3211-r1.ebuild [moved from app-editors/sublime-text/sublime-text-3_p3211.ebuild with 91% similarity]

similarity index 91%
rename from app-editors/sublime-text/sublime-text-3_p3211.ebuild
rename to app-editors/sublime-text/sublime-text-3_p3211-r1.ebuild
index d059f42e93d55531fcf6b6067718ec135fcd253b..0ac62feeecccbc61075c9d11fd80939b1b1ecc24 100644 (file)
@@ -48,11 +48,11 @@ src_install() {
                        /usr/share/icons/hicolor/${size}x${size}/apps/subl.png
        done
 
-       make_desktop_entry "subl" "Sublime Text ${MV}" "subl" \
+       make_desktop_entry "subl %F" "Sublime Text ${MV}" subl \
                "TextEditor;IDE;Development" "StartupNotify=true"
 
        # needed to get WM_CLASS lookup right
-       mv "${ED}"/usr/share/applications/subl{-sublime-text,}.desktop || die
+       mv "${ED}"/usr/share/applications/subl{_%F-sublime-text,}.desktop || die
 }
 
 pkg_postrm() {