深度 linux可以在桌面创建某个网址的快捷方式么?
Tofloor
poster avatar
sl2019
deepin
2019-07-13 02:49
Author
刚接触,不太懂,如果可以,希望能告诉具体的创建方法
Reply Favorite View the author
All Replies
avatar
走钢丝
deepin
2019-07-13 03:02
#1
没搞过。听说以后要添加一个自动创建 desktop 文件的功能,这样应该能实现。
Reply View the author
avatar
superendermansm
deepin
2019-07-13 03:06
#2
15.11可以,现在尝鲜去github编译也可以,现在来看完成度很高了
Reply View the author
avatar
sl2019
deepin
2019-07-13 03:12
#3
https://bbs.deepin.org/post/180579
15.11可以,现在尝鲜去github编译也可以,现在来看完成度很高了

感谢回答,就是不知道,如果我想桌面点击一个图标就打开网易这个网页。再创建一个图标,点击就打开百度,如果创建几十个网址在桌面。一般常去的就这些。
Reply View the author
avatar
sl2019
deepin
2019-07-13 03:14
#4
https://bbs.deepin.org/post/180579
没搞过。听说以后要添加一个自动创建 desktop 文件的功能,这样应该能实现。 ...

我用的15.10.2版本,在启动器里右键某个软件,有一个发送到桌面的菜单,可以在桌面创建 .desktop文件。也就是快捷方式。不过没发现怎么创建网址的。
Reply View the author
avatar
fzlth
deepin
2019-07-13 03:15
#5
还有网络邻居其它电脑的共享文件夹,也能在桌面创建快捷方式就好了,已后访问就不用每次都找网络邻居。
Reply View the author
avatar
lookfor
deepin
2019-07-13 03:17
#6
sl2019 发表于 2019-7-12 19:12
感谢回答,就是不知道,如果我想桌面点击一个图标就打开网易这个网页。再创建一个图标,点击就打开百度, ...

为什么不用书签?
Reply View the author
avatar
sl2019
deepin
2019-07-13 03:21
#7
https://bbs.deepin.org/post/180579
为什么不用书签?

假如给儿童,或不太懂电脑的人使用嘛,您怎么不问为啥不自己编程实现?
Reply View the author
avatar
走钢丝
deepin
2019-07-13 03:32
#8
https://bbs.deepin.org/post/180579
我用的15.10.2版本,在启动器里右键某个软件,有一个发送到桌面的菜单,可以在桌面创建 .desktop文件。也 ...

Exec 那一项改成 xdg-open https://www.baidu.com 不就好了
Reply View the author
avatar
lookfor
deepin
2019-07-13 03:38
#9
sl2019 发表于 2019-7-12 19:21
假如给儿童,或不太懂电脑的人使用嘛,您怎么不问为啥不自己编程实现? ...

又没让你自己实现,你这是什么语气
Reply View the author
avatar
sl2019
deepin
2019-07-13 03:51
#10
https://bbs.deepin.org/post/180579
又没让你自己实现,你这是什么语气

呵呵,感谢,书签这个方法也是一种方案。不过我发现在chrome中有一个更多工具->创建快捷方式。可以在桌面创建一个网址的快捷方式。还是期待深度官方的在桌面右键就可以创建网址的快捷方式的方案。毕竟新手不研究,一时可能不知道,增加学习成本。
Reply View the author
avatar
le******ly@163.com
deepin
2019-07-13 03:54
#11
可以做到啊,你试一下。
Reply View the author
avatar
158******08
deepin
2019-07-13 04:31
#12
本帖最后由 ptlin 于 2019-7-12 20:35 编辑

你好,这个东西我曾经写成过一个脚本,原本是为了让GitHub上没看完的文件生成desktop文件用的,使用这个脚本需要把图标文件存到/home/$USER/Pictures/website.png这里,调用方式是xxx.sh URL,而且为GitHub的URL做了点处理。
  1. #!/usr/bin/env bash
  2. set -euo pipefail

  3. title=$(wget -qO - "$1" | perl -l -0777 -ne 'print $1 if /\s*(.*?)\s*<\/title/si')
  4. echo "title is $title"
  5. title=${title#*- }
  6. desktop_file_name=${title%%/*}.desktop
  7. desktop_name=${title%.*}
  8. echo "desktop_file_name is $desktop_file_name"
  9. echo "desktop_name is $desktop_name"
  10. echo "continue? [y/n]"
  11. read a
  12. if [[ $a != y ]] ;then
  13.     exit 1
  14. fi

  15. cat >$desktop_file_name <
  16. [Desktop Entry]
  17. Version=1.0
  18. Encoding=UTF-8
  19. Type=Link
  20. Icon=/home/$USER/Pictures/website.png
  21. Name=$desktop_name
  22. URL=$1
  23. EOF
Copy the Code


Reply View the author
avatar
撕夜灬小诺
deepin
2019-07-13 05:41
#13
完全不需要那么麻烦,你去 /usr/share/applications/ 路径下复制一个浏览器的desktop文件到桌面上并改个名,或者你直接在启动器里浏览器图标上右键-发送到桌面 也行,但不建议这么干。

右键-用编辑器打开浏览器desktop文件,找到 Exec=firefox  %U 这一项,在后面加上" -url www.xxxxx.com"就可以了(没有引号),网址改成你想要创建快捷方式的网址。

例如 Exec=firefox  -url bbs.deepin.org ,保存关闭。双击打开桌面图标就好。

偶尔需要注销并重新登录才能生效。

Chrome浏览器我没用过,不清楚它的参数是否和Firefox一样。
Reply View the author
avatar
zgg
deepin
2019-07-13 06:13
#14
tty不断出现iwlwifi 0000:00:14.3: Unhandled alg: 0x707
按Ctrl+alt+f2~f6进入tty后,会不断刷出来一个东西,不知道是什么意思,但是发现关闭WiFi之后就不再刷出来了

-------------------------有大神知道这个问题怎么解决吗?
Reply View the author