Skip to content

Add desktop entry#17

Open
mrBen wants to merge 1 commit intoowtaylor:mainfrom
mrBen:main
Open

Add desktop entry#17
mrBen wants to merge 1 commit intoowtaylor:mainfrom
mrBen:main

Conversation

@mrBen
Copy link
Copy Markdown

@mrBen mrBen commented Jan 2, 2022

Generally, when I want to open VS Code, I'm not in a terminal doing things in a toolbox. Instead, I'm browsing files or starting a project from scratch. In these situations, I don't want to open a terminal and type two commands just to open my editor.

To solve this problem, I created a .desktop file based on the flatpak one.

Then I realized that it would be a shame not to share, so here is my PR.

@owtaylor
Copy link
Copy Markdown
Owner

Could you explain this a bit more? If I open vscode from the launcher that the Flatpak installs, then it will, by default, open the last project - and if that was inside a toolbox, will open that. And if I want a different project that was inside a toolbox, then I can get to that from Open Recent.

The things that work poorly are:

A) If I open the launcher before opening any projects, then I get the raw inside-the-flatpak-sdk vscode.
B) Similarly "New Empty Window" action gives that

I suppose we could have another launcher that was "VSCode + Toolbox" that opened an empty window on the default toolbox, but I think that would be confusing to imply that "VScode" and "VSCode + Toolbox" were separate apps .

@mrBen
Copy link
Copy Markdown
Author

mrBen commented Feb 25, 2022

Could you explain this a bit more? If I open vscode from the launcher that the Flatpak installs, then it will, by default, open the last project - and if that was inside a toolbox, will open that. And if I want a different project that was inside a toolbox, then I can get to that from Open Recent.

Oh, I never noticed that I could do that…

The things that work poorly are:

A) If I open the launcher before opening any projects, then I get the raw inside-the-flatpak-sdk vscode.
B) Similarly "New Empty Window" action gives that

Yes, B) is the main reason that prompted me create a specific .desktop entry.
But I also regularly open a folder from the file explorer, and "open with" the flatpak VS Code does not open the folder inside a toolbox, even if the last time I opened it was in a toolbox.

I suppose we could have another launcher that was "VSCode + Toolbox" that opened an empty window on the default toolbox, but I think that would be confusing to imply that "VScode" and "VSCode + Toolbox" were separate apps .

Yes, that’s the main problem with my solution, now I have two desktop entry for VS Code and it’s confusing and annoying to have both.

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

Successfully merging this pull request may close these issues.

2 participants