如此多的程序正在从您安装在计算机上的东西变成您在浏览器中运行的 Web 应用程序。这是世界上越来越多的人可以访问超过 10Mbps的高速互联网服务所带来的举措。(Internet)
另一个促成因素是基于服务器的电源正变得越来越普遍且使用成本更低。在两者之间,网络应用成为标准的条件已经成熟。
Web 应用程序的问题
然而,Web 应用程序面临着一个大问题——浏览器。如果你的桌面Microsoft Word也有一个网址栏、一个书签栏、一堆扩展显示,以及顶部的一排选项卡,你可能会对混乱感到非常沮丧。这正是浏览器中的 Web 应用程序所发生的情况。
当您希望同时打开其他网站时,情况会变得更糟,因此您在同一浏览器中的多个不同选项卡下运行了几个 Web 应用程序。
一个较小的问题是必须打开浏览器并单击 Web 应用程序的书签才能启动它。
让Web 应用程序(Web App Run)像桌面应用程序一样运行
有一种方法可以消除这些问题,并像享受桌面版本一样享受您的网络应用程序。让我们完成实现这一目标的步骤。
你需要什么
您需要安装Google Chrome并将其设置为默认浏览器。它可以从https://www.google.com/chrome/下载。在撰写本文时,我们只知道一种适用于此的浏览器。如果您想在自己喜欢的浏览器中看到此功能,请转到他们的主页并找到一种请求方式。
您还需要经常使用的 Web 应用程序的网址或URL。出于我们的目的,我们将使用 Google 的Messages for Web应用程序。如果您有一部基于 Android 的手机,您应该考虑使用Messages for Web。这是在计算机上发送和接收短信的好方法。https://messages.android.com/看看吧。
采取的步骤
打开Windows 资源管理器(Windows Explorer)。最快的方法是按住Windows 键并按键盘上的E。
导航到您计算机上安装Chrome的位置。(Chrome)它可能位于:C:\Program Files (x86)\Google\Chrome\Application.如果在那里找不到,请在Windows Explorer中搜索(Windows Explorer)Chrome.exe。
右键单击(Right-click)chrome.exe 文件,然后单击创建快捷方式(Create shortcut)。
您可能会收到一条错误消息,提示“Windows 无法在此处创建快捷方式。你想把快捷方式放在桌面上吗?” (“Windows can’t create a shortcut here. Do you want the shortcut to be placed on the desktop instead?”)选择是(Yes)。
转到您的桌面并找到快捷方式。它将如下图所示。
右键单击(Right-click)快捷方式,然后单击属性( Properties)。将打开一个新窗口。
快捷方式属性(Shortcut Properties )窗口应打开,焦点位于快捷方式(Shortcut )选项卡和目标:(Target: )字段中。在这里,我们将添加标志,使您的 Web 应用程序在类似 Windows 的窗口中打开,而不会出现浏览器的混乱。将光标移动到字段中已有文本的末尾。
现在,输入以下内容:–app=https://messages.android.com。请注意(Notice),app 前面有两个破折号。–app告诉Chrome在没有位置栏、书签或任何其他元素的情况下打开。(–app)
=https://messages.android.com部分告诉Chrome直接打开该网站或网络应用程序。您可以将该地址替换为您喜欢的任何网络应用程序的网址。单击(Click) 应用(Apply)。
建议您更改快捷方式的名称,以便您可以轻松地将其识别为打开 Web 应用程序的快捷方式。在快捷方式属性(Shortcut Properties)窗口中,单击常规(General)选项卡。
在选项卡式页面的顶部,您会看到名称设置为chrome.exe – Shortcut。删除(Delete)它并输入您的网络应用程序的名称。单击(Click)此窗口底部的确定按钮。(OK)
现在,双击该快捷方式并在一个漂亮的、大的、打开的窗口中享受您的网络应用程序。
这就是您可以让任何 Web 应用程序像Windows(Windows)应用程序一样打开的方法。您可以将该快捷方式固定到任务栏或将其移动到“开始”菜单中(Start Menu),以便您可以在任何地方访问它。
如果您想更进一步,您甚至可以更改快捷方式的图标以匹配网络应用程序,而不是默认的Chrome图标。在以后的文章中查找有关如何执行此操作的详细信息。
Make a Web App Run Like a Desktop App
So many programs аrе goіng frоm being ѕomething you install on yoυr computer tо being a web app that you run in а browser. It’s a move that’s brought on by more and more of the wоrld having access to high-speed Internet sеrvice in excess of 10Mbps.
Another contributing factor is that server-based power is getting more pervasive and cheaper to use. Between the two, conditions are ripe for web apps to become the standard.
The Problem with Web Apps
However, there is one big problem facing web apps – the browser. If your desktop Microsoft Word also had a web address bar, a bookmarks bar, a bunch of extensions showing, and a row of tabs on top, you would probably get really frustrated with the clutter. That’s exactly what happens with web apps in the browser.
It gets worse when you want to have other websites open at the same time, so you have a few web apps running in the same browser under several different tabs.
A lesser problem is having to open the browser
and click on the bookmark for your web app just to start it up.
Make a Web App Run Like a Desktop
App
There is a way to eliminate those problems and
enjoy your web app as much as you enjoyed the desktop version. Let’s go through
the steps of making that happen.
What You’ll Need
You’ll need Google Chrome installed and set as your default browser. It can be downloaded from https://www.google.com/chrome/. At the time of writing this, we only know of one browser that works for this. If you’d like to see this functionality in your favorite browser, go to their homepage and find a way to request it.
You’ll also need the web address or URL of a web app that you use frequently. For our purposes, we’ll use Google’s Messages for Web app. If you’ve got an Android-based phone, you should look into using Messages for Web. It’s a great way to send and receive text messages on your computer. Go check it out at https://messages.android.com/.
Steps to Take
Open Windows Explorer. The quickest way to do this is to hold down the Windows key and press E on your keyboard.
Navigate to where Chrome is installed on your computer. It will likely be in: C:\Program Files (x86)\Google\Chrome\Application. If you can’t find it there, search for Chrome.exe in Windows Explorer.
Right-click on the chrome.exe file and click on Create shortcut.
You’ll likely get an error message saying “Windows can’t create a shortcut here. Do you want the shortcut to be placed on the desktop instead?” Select Yes.
Go to your desktop and find the shortcut. It will look like the following image.
Right-click on the shortcut and click on Properties. A new window will open.
The Shortcut Properties window should open with the focus on the Shortcut tab and in the Target: field. This is where we will add the flag that makes your web app open up in a Windows-like window with none of the clutter of the browser. Move your cursor to the end of the text that is already in the field.
Now, type the following: –app=https://messages.android.com/. Notice that there are two dashes in front of app. The –app tells Chrome to open without the location bar, bookmarks, or any other elements.
The =https://messages.android.com part tells Chrome to open up directly to that website, or web app. You can substitute that address with the web address of any web app you like. Click Apply.
It is recommended that you change the name of the shortcut, so you can easily identify it as the one that opens your web app. In the Shortcut Properties window, click on the General tab.
At the top of the tabbed-page, you’ll see the name is set as chrome.exe – Shortcut. Delete that and enter the name of your web app. Click on the OK button at the bottom of this window.
Now, double click on that shortcut and enjoy your web app in a nice, big, open window.
That’s how you can make any web app open up
like it’s a Windows app. You can pin that shortcut to the taskbar or move it
into your Start Menu so you can access it where you’d like.
If you want to take it one step further, you
can even change the icon for your shortcut to match the web app, instead of the
default Chrome icon. Look for details on how to do that in a future article.