electron-deep-linking-mac-win
electron-deep-linking-mac-win copied to clipboard
What about deep linking on Linux?
What about deep linking on Linux?
Doing the same as on win32 worked for me.
It should be added to readme.
Deeplink is not working on Linux/Ubuntu.
Installed and integrated plugin into our electron project. open on chrome with : Open app
getting below error
.
what did you change for work on linux ?
Replace process.platform == 'win32'
with process.platform == 'win32' || process.platform == 'linux'
and update to the latest electron version because it has a fix for linux in it.
Checked with provided steps on ubuntu 18.04.
But still, I am getting the same issue.
here is the updated file
vijay@vijay:~/electron-deep-linking-mac-win$ npm start
[email protected] start /home/vijay/electron-deep-linking-mac-win electron .
xdg-settings: default-url-scheme-handler not implemented for xfce createWindow# .
also did with "npm run dist" and it will generate electron appimage file and installed that and checked with it. but same issue as well.
We have implemented a check if appimaged or AppImageLauncher is installed. It seems to be that one of those is necessary for this to work.
Could you please provide a code so I can check with it? what needs to change in code for work on Linux/ubuntu.
This is the code we are currently using:
#!/bin/bash
IS_APP_IMAGE=false
APP_IMAGE_HELPER_IS_PRESENT=false
MESSAGE_TITLE="Missing dependencies"
MESSAGE="To provide you with a seamless experience, we rely on appimaged \
or AppImageLauncher. Please install one of these dependencies to continue"
###############################################################################
### Check for appimaged or appimagelauncher
###############################################################################
# Check if this script is launched in an appimage
if ! [ -z ${APPIMAGE+x} ]; then
IS_APP_IMAGE=true
fi
# Check if a appimage helper is present
if command -v appimaged AppImageLauncher >/dev/null 2>&1; then
APP_IMAGE_HELPER_IS_PRESENT=true
fi
if $IS_APP_IMAGE && ! $APP_IMAGE_HELPER_IS_PRESENT; then
# try to send message with zenity
if command -v zenity >/dev/null 2>&1; then
zenity --info --height 50 --width 350 --text="$MESSAGE" --title="$MESSAGE_TITLE"
# try to send message with kdialog
elif command -v kdialog >/dev/null 2>&1; then
kdialog --msgbox "$MESSAGE" --title "$MESSAGE_TITLE"
else
echo "$MESSAGE"
fi
exit 1
fi
Thanks for share a code. just run this shell script or I need to set from the code end.
It's a bit more complex how we use it. First of all it's just part of an other script which disables sandboxing under some circumstances but I don't think it's relevant for your problem. What we are doing is to replace the original startup script within the afterPack hook.
So this script basically checked appimage or AppImageLauncher is installed or not if installed that case checked command for zenity or kdialog. but My case already installed zenity. but this will not solve my problem.
But have you installed appimage or AppImageLauncher on the machine where you are installing your app?
I have installed appimage as a generated appimage then run as double clicks on the image. or another way using the command line. generated appimage chmod +x <APP_IMAGE> ./APP_IMAGE