[App Store] 应用商店安装的Visual Studio Code,无法使用终端启动了
Tofloor
poster avatar
Kerbin
deepin
2022-02-16 19:45
Author

本来装好了以后在终端或者是ssh远程使用code命令启动的,但是有一次手贱apt-get upgrade以后升级了该软件,现在无论是在终端还是ssh远程都无法使用code命令启动了,我卸载了重新在应用商店安装还是无法使用code命令启动了。顺便问一下终端里面用命令启动软件有什么规律吗?我发现有些可以用命令启动,有些不行,比如安装的gimp可以用gimp命令启动,深度的浏览器可以用browser命令启动,但是深度的应用商店却不可以用deepin-app-store或者app-store来启动,问一下大神们,我主要是想在xmanager里面远程使用软件……

Reply Favorite View the author
All Replies
deepin-superuser
deepin
2022-02-16 21:19
#1

输出啥呢?

Reply View the author
新手小白
deepin
2022-02-16 21:25
#2
It has been deleted!
Kerbin
deepin
2022-02-16 21:38
#3
deepin-superuser

输出啥呢?

未找到命令,原先输入code,直接启动VScode

Reply View the author
Kerbin
deepin
2022-02-16 21:51
#4
新手小白 It has been deleted!

用你这个办法列出来的包名里面就没找到deepin-store或者含有store的包名,但是系统里面确确实实是有应用商店的,我查看的是快捷方式用文本编辑器打开有个AppID的属性,有些可以用这个ID启动,有些不行,所以不明白它的原理……

Reply View the author
vivian_me
deepin testing team
2022-02-16 21:57
#5

目前是,商店的软件一般都不支持命令启动,因为商店的软件都安装在/opt/apps/下,这个不在PATH环境变量里面

Reply View the author
Kerbin
deepin
2022-02-16 22:05
#6
vivian_me

目前是,商店的软件一般都不支持命令启动,因为商店的软件都安装在/opt/apps/下,这个不在PATH环境变量里面

不是的,恰恰是VScode我是从应用商店安装的,可以从终端启动,就是自行升级了软件就不行了,而微软edge浏览器我从官网下载deb包自行安装的,没有从应用商店里面下载安装,也可以在终端里面用命令启动……

Reply View the author
新手小白
deepin
2022-02-16 22:46
#7
It has been deleted!
vivian_me
deepin testing team
2022-02-16 23:00
#8
Kerbin

不是的,恰恰是VScode我是从应用商店安装的,可以从终端启动,就是自行升级了软件就不行了,而微软edge浏览器我从官网下载deb包自行安装的,没有从应用商店里面下载安装,也可以在终端里面用命令启动……

我们重新打包看看

Reply View the author
Kerbin
deepin
2022-02-17 00:34
#9
新手小白 It has been deleted!

意思是要切换到这个目录才能用命令启动?可是我之前随意切换到其他目录只要敲了这个命令也能启动呀

Reply View the author
新手小白
deepin
2022-02-17 05:48
#10
It has been deleted!
新手小白
deepin
2022-02-17 05:55
#11
It has been deleted!
Kerbin
deepin
2022-02-17 17:51
#12
新手小白 It has been deleted!

好的,谢谢

Reply View the author
Kerbin
deepin
2022-02-17 18:37
#13
新手小白 It has been deleted!

如果已经安装了,想恢复以前的code命令启动的话,我去找到这个code执行文件复制到/usr/bin这个目录下面就可以了是吗?

Reply View the author
Kerbin
deepin
2022-02-17 18:38
#14
新手小白 It has been deleted!

如果已经安装了,想恢复以前的code命令启动的话,我去找到这个code执行文件复制到/usr/bin这个目录下面就可以了是吗?

Reply View the author