写个用 参数启动独显启动游戏(大黄蜂)的开始菜单图标
Tofloor
poster avatar
deepinf
deepin
2017-12-02 04:00
Author
本帖最后由 deepinf 于 2017-12-2 10:18 编辑

大家都知道大黄蜂驱动开机默认启用集显,要想使用独显运行游戏需要终端输入vblank_mode=0 primusrun “+游戏名” 。

这样总有些不方便,所以我们可以写个shall脚本 并右键属性设置“允许以程序运行” 放在桌面上,启动游戏时直接双击这个shall文件。


也可以写个 .desktop文件,放在/usr/share/applications/下,但是目前没办法让它在开始菜单里显示出来。有大神知道的的吗?
解决了,不知道deepin的启动器有什么机制,在/usr/share/applications/建立新文件夹 把上级文件夹里的.desktop文件复制到这里,修改Exec

好像和文件名有关





Reply Favorite View the author
All Replies
avatar
impressionyang
deepin
2017-12-02 05:21
#1
。。。。没有下文了么。。。。。
Reply View the author
avatar
deepinf
deepin
2017-12-02 05:59
#2
我找了很久,发现在Ubuntu下的方法不能用了,建立 .desktop文件后可以双击启动程序,但是怎么也不能在开始菜单里显示出来, 该怎么做呢?
Reply View the author
avatar
zwq133
deepin
2017-12-02 06:19
#3
把.desktop文件放到启动器的图标文件夹里试试
Reply View the author
avatar
deepinf
deepin
2017-12-02 06:30
#4
/usr/share/applications/里吗?不行,在开始菜单里显示不出来
Reply View the author
avatar
isunny
deepin
2017-12-02 07:53
#5
我教你怎么删除图片。。。

1   编辑你的帖子
2   再上传一张图片,你就可以看到你原来帖子里面的图片。。
3   删除你想删除的图片。。
Reply View the author
avatar
187******09
deepin
2017-12-02 16:02
#6
deepinf 发表于 2017-12-1 22:30
/usr/share/applications/里吗?不行,在开始菜单里显示不出来

你没有设置 Hidden=true?
Reply View the author
avatar
deepinf
deepin
2017-12-02 16:04
#7
https://bbs.deepin.org/post/149376
我教你怎么删除图片。。。

1   编辑你的帖子

谢啦                     
Reply View the author
avatar
deepinf
deepin
2017-12-02 16:25
#8
本帖最后由 deepinf 于 2017-12-2 08:28 编辑
https://bbs.deepin.org/post/149376
你没有设置 Hidden=true?

在.desktop的里面吗?添加Hidden=true吗?添加了,还是不行。
Reply View the author
avatar
jlice
deepin
2017-12-02 17:30
#9
~/.local/share/applications/
Reply View the author
avatar
187******09
deepin
2017-12-03 16:32
#10
https://bbs.deepin.org/post/149376
在.desktop的里面吗?添加Hidden=true吗?添加了,还是不行。

=true是隐藏,改成false
Reply View the author
avatar
deepinf
deepin
2017-12-03 20:01
#11
false也不行我直接该steam.desktop了反正不可能集显启动steam。
Reply View the author
avatar
134******40
deepin
2017-12-03 21:35
#12
https://bbs.deepin.org/post/149376
在.desktop的里面吗?添加Hidden=true吗?添加了,还是不行。

你要隐藏图标吗?应该改为false。
Reply View the author
avatar
shdyeu
deepin
2017-12-08 08:10
#13
这个还真的是不清楚的呢。。
Reply View the author
avatar
shdyeu
deepin
2017-12-24 06:09
#14
开始支持的呢呢。。。。。。。
Reply View the author