firefox-nativefy.sh想要一个网站作为桌面应用程序吗?但是是否没有可用的官方申请(用于Linux)?您想避免镀铬 /电子吗?
这是firefox-nativefy.sh :一个简单的bash脚本,可以通过启动firefox的自定义实例来帮助您使用firefox的本地fy网站。
首先,确保系统上安装了Firefox。这已经是大多数Linux发行版的默认值。
然后:
# WhatsApp, Telegram and Notion are automatically detected to have correct names
./firefox-nativefy.sh web.whatsapp.com或者:
# Supply a custom name for the to-be-nativefied application
./firefox-nativefy.sh web.whatsapp.com --name " Custom Name "或者:
# Supply a custom icon after the name
./firefox-nativefy.sh web.whatsapp.com --name " Custom Name " --icon " custom-icon "或者
# Display the full help text
./firefox-nativefy.sh --help现在,您可以像其他任何安装的应用程序一样启动本地化应用程序。
注意:在默认浏览器中启动外部链接的扩展程序尚不处于活动状态时,您第一次启动新的本机式应用程序(除非您以前已经对其进行了本地化)。这是一个小的烦恼,实际上可能对SSO登录很有用。
如果自本机构使用应用程序以来, firefox-nativefy.sh已更新,则只需运行与您最初相同的本机构命令。第二次以相同的URL和应用程序名称运行firefox-nativefy.sh ,只会覆盖应用程序快捷方式并更新Firefox配置文件中必要的内容。
您的本地应用程序将自动自动更新,因为它基本上只是一个在浏览器中运行的网站。
firefox-nativefy.sh通过为您想要本地化的应用程序创建自定义的Firefox配置文件,并将某些自定义应用于个人资料中,以隐藏Firefox的常规UI。它还在自定义配置文件中安装了扩展名,以便在默认的Web浏览器中打开所有外部链接。
然后,它在用户的应用程序文件夹中创建应用程序快捷方式( .desktop文件),以启动使用该自定义配置文件的Firefox的新实例。
就是这样。这很简单。
# Remove the application shortcut.
rm ~ /.local/share/applications/ $NAME_UNSPACED .desktop
# Remove the Firefox profile
firefox -P # opens Firefox' profile manager
# Select the profile with the unspaced name of the app, then click 'Delete Profile ...' and click 'Delete Files' $NAME_UNSPACED是应用程序的名称,所有间隔都删除了。例如,假设我们是本地贴上web.whatsapp.com作为WhatsApp Desktop 。然后,未空格的名称是WhatsAppDesktop 。
由于: