本文整理汇总了Python中umake.tools.get_application_desktop_file函数的典型用法代码示例。如果您正苦于以下问题:Python get_application_desktop_file函数的具体用法?Python get_application_desktop_file怎么用?Python get_application_desktop_file使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了get_application_desktop_file函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_get_application_desktop_file_with_extra
def test_get_application_desktop_file_with_extra(self):
"""We return expect results with extra content"""
self.assertEqual(
tools.get_application_desktop_file(
name="Name 1",
icon_path="/to/icon/path",
exec="/to/exec/path %f",
comment="Comment for Name 1",
categories="Cat1:Cat2",
extra="Extra=extra1\nFoo=foo",
),
dedent(
"""\
[Desktop Entry]
Version=1.0
Type=Application
Name=Name 1
Icon=/to/icon/path
Exec=/to/exec/path %f
Comment=Comment for Name 1
Categories=Cat1:Cat2
Terminal=false
Extra=extra1
Foo=foo
"""
),
)
示例2: post_install
def post_install(self):
"""Create the Atom Code launcher"""
create_launcher(self.desktop_filename, get_application_desktop_file(name=_("Atom"),
icon_path=os.path.join(self.install_path, "atom.png"),
exec=self.exec_path,
comment=_("The hackable text editor"),
categories="Development;IDE;"))
示例3: post_install
def post_install(self):
"""Create the Twine launcher"""
create_launcher(self.desktop_filename, get_application_desktop_file(name=_("Twine"),
icon_path=os.path.join(self.install_path, self.icon_name),
exec='"{}" %f'.format(os.path.join(self.install_path, "Twine")),
comment=self.description,
categories="Development;IDE;"))
示例4: post_install
def post_install(self):
"""Create the Firefox Developer launcher"""
create_launcher(self.desktop_filename, get_application_desktop_file(name=_("Firefox Developer Edition"),
icon_path=os.path.join(self.install_path, "browser", "icons", "mozicon128.png"),
exec=os.path.join(self.install_path, "firefox"),
comment=_("Firefox Aurora with Developer tools"),
categories="Development;IDE;"))
示例5: post_install
def post_install(self):
"""Create the Dart Editor launcher"""
create_launcher(self.desktop_filename, get_application_desktop_file(name=_("Dart Editor"),
icon_path=os.path.join(self.install_path, "icon.xpm"),
exec=os.path.join(self.install_path, "DartEditor"),
comment=_("Dart Editor for the dart language"),
categories="Development;IDE;"))
示例6: post_install
def post_install(self):
"""Create the Superpowers launcher"""
create_launcher(self.desktop_filename, get_application_desktop_file(name=_("Superpowers"),
icon_path=os.path.join(self.install_path, "resources", "app", "renderer",
"images", "superpowers-256.png"),
exec='"{}" %f'.format(self.exec_path),
comment=self.description,
categories="Development;IDE;"))
示例7: post_install
def post_install(self):
"""Create the DBeaver launcher"""
create_launcher(self.desktop_filename, get_application_desktop_file(name=self.name,
icon_path=os.path.join(self.install_path, "dbeaver.png"),
try_exec=self.exec_path,
exec=self.exec_link_name,
comment=self.description,
categories="Development;IDE;"))
示例8: post_install
def post_install(self):
"""Create the Blender launcher"""
create_launcher(self.desktop_filename, get_application_desktop_file(name=_("Blender"),
icon_path=os.path.join(self.install_path, "icons", "scalable", "apps", "blender.svg"),
try_exec=self.exec_path,
exec=self.exec_link_name,
comment=self.description,
categories="Development;IDE;Graphics"))
示例9: post_install
def post_install(self):
"""Create the Eagle launcher"""
create_launcher(self.desktop_filename, get_application_desktop_file(name=_("Eagle"),
icon_path=os.path.join(self.install_path, "bin", "eagle-logo.png"),
try_exec=self.exec_path,
exec=self.exec_link_name,
comment=self.description,
categories="Development;"))
示例10: post_install
def post_install(self):
"""Create the launcher"""
create_launcher(self.desktop_filename, get_application_desktop_file(name=_("Base Framework"),
icon_path=os.path.join(self.install_path, "bin", "studio.png"),
exec='"{}" %f'.format(self.exec_path),
comment=_("Base Framework developer environment"),
categories="Development;IDE;",
extra="StartupWMClass=jetbrains-base-framework"))
示例11: post_install
def post_install(self):
"""Create the Android Studio launcher"""
create_launcher(self.desktop_filename, get_application_desktop_file(name=_("Android Studio"),
icon_path=os.path.join(self.install_path, "bin", "studio.png"),
exec='"{}" %f'.format(os.path.join(self.install_path, "bin", "studio.sh")),
comment=_("Android Studio developer environment"),
categories="Development;IDE;",
extra="StartupWMClass=jetbrains-android-studio"))
示例12: post_install
def post_install(self):
"""Create the Firefox Developer launcher"""
create_launcher(self.desktop_filename, get_application_desktop_file(name=_("Firefox Developer Edition"),
icon_path=os.path.join(self.install_path,
"browser", "chrome", "icons", "default", "default128.png"),
try_exec=self.exec_path,
exec=self.exec_link_name,
comment=_("Firefox Aurora with Developer tools"),
categories="Development;IDE;",
extra="StartupWMClass=Firefox Developer Edition"))
示例13: post_install
def post_install(self):
"""Create the Android Studio launcher"""
add_env_to_user(self.name, {"ANDROID_HOME": {"value": self.install_path, "keep": False},
"ANDROID_SDK": {"value": self.install_path, "keep": False}})
create_launcher(self.desktop_filename, get_application_desktop_file(name=_("Android Studio"),
icon_path=os.path.join(self.install_path, "bin", "studio.png"),
try_exec=os.path.join(self.install_path, "bin", "studio.sh"),
exec=self.exec_link_name,
comment=_("Android Studio developer environment"),
categories="Development;IDE;",
extra="StartupWMClass=jetbrains-studio"))
示例14: post_install
def post_install(self):
"""Create the launcher"""
icon_filename = "drjava.jpeg"
icon_path = join(self.install_path, icon_filename)
exec_path = 'java -jar {} %f'.format(join(self.install_path, "drjava.jar"))
comment = "DrJava IDE"
categories = "Developement;IDE;"
create_launcher(self.desktop_filename,
get_application_desktop_file(name="DrJava",
icon_path=icon_path,
exec=exec_path,
comment=comment,
categories=categories))
示例15: post_install
def post_install(self):
"""Create the Luna launcher"""
icon_filename = "icon.xpm"
icon_path = join(self.install_path, icon_filename)
exec_path = '"{}" %f'.format(join(self.install_path, "eclipse"))
comment = _("The Eclipse Luna Integrated Development Environment")
categories = "Development;IDE;"
create_launcher(self.desktop_filename,
get_application_desktop_file(name=_("Eclipse Luna"),
icon_path=icon_path,
exec=exec_path,
comment=comment,
categories=categories))