Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to associate xml files with desktop app? #152

Closed
seasonxuan opened this issue Sep 2, 2017 · 13 comments
Closed

How to associate xml files with desktop app? #152

seasonxuan opened this issue Sep 2, 2017 · 13 comments

Comments

@seasonxuan
Copy link

When I want to edit graph with this app, I hope to click demo.xml file rather than lanuch app first and then open demo.xml file.
the following maybe a solution but not available now:
chrome.exe --profile-directory=Default --app-id=pebppomjfocnoigkeepgbmcifnnlndla demo.xml

@AleixDev
Copy link

AleixDev commented Jan 8, 2018

You should be able to associate xml files to the desktop app since latest release (7.9.5).

@JesseAldridge
Copy link

Not working on OSX High Sierra. The app is greyed out when I try to associate the file type. App version 7.9.8.

screen shot 2018-01-16 at 11 14 17 am

screen shot 2018-01-16 at 11 12 11 am

@alderg
Copy link
Contributor

alderg commented Jan 16, 2018

What are the options for Enable: Recommended Applications?

@JesseAldridge
Copy link

@alderg Ah, ok. There is one other option: "All Applications". I am able to use that to create the association. But after I do that, when I double click on one of the xml files, it only launches the app -- it doesn't actually open the file. I get this screen:

screen shot 2018-01-16 at 11 07 03 pm

@alderg
Copy link
Contributor

alderg commented Jan 24, 2018

@AleixDev Works on Windows 10, but not macOS or Linux.

@AleixDev
Copy link

I can't speak for Mac since I don't have one.

About Linux I have no issues creating the association, but if you give me more details (how do you have it installed and in which distro), I can try to reproduce the issue.

@AleixDev
Copy link

For example, on a fresh Ubuntu directly installed from the github repo on /opt, I can associate it like this:

cat << EOF | tee ~/.local/share/applications/draw.io.desktop
[Desktop Entry]
Name=draw.io
Comment=draw.io desktop
Exec=/bin/bash -c '(cd /opt/drawio/src/main/webapp/; npm start -- "\$@") > /dev/null 2> /dev/null' bash %U
Terminal=false
Type=Application
Icon=draw.io
Categories=Graphics;
EOF

Select the file -> Properties
0

Open with -> Select draw.io -> Set as default
1
2

Then just open the file and it loads it with draw.io.
3

(This is just a "quick and dirty" demo since I haven't even set the icon, but it works)

@Ezwen
Copy link

Ezwen commented Feb 8, 2018

By any chance, is there any plan to switch to an extension specific to draw.io, such as .drawio?

@alderg
Copy link
Contributor

alderg commented Feb 8, 2018

Yes. As a workaround you can click on the filename and change it to *.drawio (or any other custom extension).

@Ezwen
Copy link

Ezwen commented Feb 8, 2018

I was suggesting the possibility for draw.io to produce by default a .drawio file instead of a .xml file when saving a figure :)

@g-mu
Copy link

g-mu commented May 7, 2018

The original issue for this thread still exists on OSX. Regardless of the extension, once an association is made in OSX, double clicking the file brings the draw.io desktop app to the foreground but doesn't load the file.

@JesseAldridge

This comment has been minimized.

@alderg
Copy link
Contributor

alderg commented May 30, 2019

Duplicate of jgraph/drawio-desktop#11

@alderg alderg marked this as a duplicate of jgraph/drawio-desktop#11 May 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants