0

I run eclipse on linux mint. The installation uses flatpack as an envelope for execution. The exact command is: /usr/bin/flatpak run --branch=stable --arch=x86_64 --command=eclipse --file-forwarding org.eclipse.Java I want to pass the workspace path to eclipse and after googling, found that eclipse can take an argument specifying the workspace. Specifically, it is the -data argument, which takes a path to the workspace. So, I tried: /usr/bin/flatpak run --branch=stable --arch=x86_64 --command=eclipse -data <absolute path to workspace> --file-forwarding org.eclipse.Java However, flatpack returned an error stating it did not recognize -data. I then put the -data argument in both single quotes and double quotes, e.g., /usr/bin/flatpak run --branch=stable --arch=x86_64 --command=eclipse "-data <absolute path to workspace>" --file-forwarding org.eclipse.Java Flatpack still returned the unrecognized error.

Can anyone advise me how to pass this argument to eclipse when it is executed through flatpack?

nitind
20.1k4 gold badges37 silver badges46 bronze badges
asked Dec 12, 2024 at 21:17
4
  • This seems to be flatpak not flatpack. Questions about a Linux command belong on Unix & Linux which has 150+ questions about flatpak Commented Dec 12, 2024 at 21:46
  • Eclipse also already provides packaged downloadable tarballs that can usually update themselves. You need only unpack it into a location where your user has full permissions. No need to wait on, or trust in, whomever created that flatpak. Commented Dec 12, 2024 at 22:54
  • 1
    The only sensible thing with the quotes would be /usr/bin/flatpak run --branch=stable --arch=x86_64 --command="eclipse -data <absolute path to workspace>". Commented Dec 12, 2024 at 23:29
  • 1
    @rzwitserloot: Quoting the whole command seemed to get around the unrecognized error, but now flatpak can't seem to find the eclipse executable. However, per the suggestion by greg-449, this is probable a flatpak question and I will move it to Unix & Linux. Commented Dec 13, 2024 at 4:23

0

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.