Can you make a chrome application default to open files in pantheon?
I would like to set .txt
files to open a application called "text" which is a chrome application.
Can you make a chrome application default to open files in pantheon?
I would like to set .txt
files to open a application called "text" which is a chrome application.
You can, as in the example below (I used Google Docs as I do not have the other app but it should work exactly in the same way).
~/.local/share/applications/chrome-aohghmighlieiainnegkcijnfilokake-Default.desktop
, find the .desktop
that corresponds to your Chrome App.Append %F
with a text editor in the Exec=
line (see below):
#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Terminal=false
Type=Application
Name=Google Docs
Exec=/opt/google/chrome/google-chrome --profile-directory=Default --app-id=aohghmighlieiainnegkcijnfilokake %F
Icon=chrome-aohghmighlieiainnegkcijnfilokake-Default
StartupWMClass=crx_aohghmighlieiainnegkcijnfilokake