【问题标题】:Getting Ubuntu 14.10 Unity Launcher to launch Android-Studio让 Ubuntu 14.10 Unity Launcher 启动 Android-Studio
【发布时间】:2015-05-21 11:04:03
【问题描述】:

我无法让 Ubuntu Unity Launcher 启动 Android-Studio。这是我的桌面文件:

more Android-studio.desktop
[Desktop Entry]
Type=Application
Name=Android-studio
Comment=Android Integrated Development Environment
Icon=/home/jumbo/android-studio/bin/idea
Exec=/home/jumbo/android-studio/bin/studio.sh
Terminal=false
Categories=Development;IDE;Android;
StartupWMClass=Android-studio
Name[en_GB]=Android-studio

我从 Ubuntu 网站复制了上面的内容,但图标闪烁了几次,然后没有任何反应。

我通过谷歌浏览器找不到明确的说明。

unity 启动器商店启动错误吗?

【问题讨论】:

  • 你是如何安装 Android-Studio 的?
  • Android-Studio 工作正常,如果我 cd 到 bin 目录:“cd /home/jumbo/android-studio/bin”,然后 ./studio.sh
  • 尝试在您的代码中添加:'StartupNotify=true',或者,Android Studio->Tools->Create Desktop Entry。
  • 我按照您的建议添加了“StartupNotify=true”,现在可以使用了!魔法。谢谢你。你是怎么发现的?
  • 不客气,很高兴为您提供帮助,详情请参阅我的回答

标签: ubuntu android-studio launcher ubuntu-unity


【解决方案1】:

尝试添加到您的代码中:StartupNotify=true

“桌面文件中的此命令使桌面可以使用内置于您的应用程序或工具包中的任何启动通知。”

更多详情:https://developer.gnome.org/integration-guide/stable/startup-notification.html.en

【讨论】:

    【解决方案2】:

    你会喜欢这个:(1) 进入你的 -> .Android Studio 目录/文件夹中的 GUI,你的 ./studio.sh 文件应该在那里。 ->(2)在文件夹内右键 ->(3) 在此处打开终端 ->(4)类型:./studio.sh ->Android Studio 会打开闪屏->Android Studio 完全打开时 ->(5)查看菜单栏 -> (6)查找:工具 -> (7)选择:创建桌面条目 ->(8)在它自我配置之后(当你的机器听到新配置的声音):PRESTO!!!

    【讨论】:

    • 我试了两次,(在把我的问题放在这里之前)它在启动器上放了一个图标。但它没有奏效,我试过两次!
    • 刚刚尝试了您的确切说明,是的,它成功了!棒极了!
    • 我只是按照说明进行操作,当我执行脚本时,我看到了:> ~$ AndroidStudio > Traceback(最近一次调用最后一次):> 文件“/usr/local/bin/AndroidStudio”,第 99 行,在 > os.execv(bin_file, [bin_file] + args) > OSError: [Errno 2] No such file or directory
    【解决方案3】:

    简单

    Android Studio -> Tools -> Create Desktop Entry
    

    会有用的

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-04-04
      • 1970-01-01
      • 1970-01-01
      • 2017-08-07
      • 1970-01-01
      相关资源
      最近更新 更多