Vanilla-OS / vanilla-system-operator

VSO is an utility which allows you to perform maintenance tasks on your Vanilla OS installation.
GNU General Public License v3.0
31 stars 15 forks source link

bug: desktop icons aren't exported for the sideloaded DEB packages #121

Closed hozza closed 2 months ago

hozza commented 3 months ago

Hey Vanilla OS devs!

Is there any documentation around how to use this Sideload utility? I'm testing Vanilla OS 2, downloaded Sublime Text 4 and 1Password as a .deb and Sideload was recomended as a way to install (since verified flatpaks are not available).

The installation seemed to complete successfully for both, however no desktop icon is visible in the menu and APX GUI shows no subsystems (unsure if that's related). Opening terminal and running "subl" opens the GUI ST4 application, not sure how to get 1Password opening .

Any idea what I'm doing wrong or is this intended?

Edit: removed "t" from subtl

kbdharun commented 3 months ago

Is there any documentation about how to use this Sideload utility? I'm testing Vanilla OS 2, downloaded Sublime Text 4 and 1Password as a .deb and Sideload was recommended as a way to install (since verified flatpaks are not available).

Hi, the sideload utility installs the DEBs inside the VSO container (the default one that you use when you open the Console), this one isn't listed in Apx GUI as it isn't a user-created/defined subsystem like the other ones. Atm there are no docs for it, but it will be added soon.

The installation seemed to complete successfully for both, however no desktop icon is visible in the menu and APX GUI shows no subsystems (unsure if that's related). Opening terminal and running "subtl" opens the GUI ST4 application, not sure how to get 1Password opening .

If the desktop entry hasn't been automatically exported when installing the DEB then you can try reexporting it using vso export <app-name> command or for binaries (commands) vso export --bin <package>.

For 1Password, I believe the package/command name is op as per https://developer.1password.com/docs/cli/reference/, you could try exporting it with the above commands.

hozza commented 3 months ago

Thanks @kbdharun! Thanks for explaining about the default subsystem/container, and how this is not shown on the GUI. I'm happy to help with docs, is there a repo/PR for adding these sorts of docs?

I managed to export Sublime Text 4 (installing the .deb) using vso export --app subl, note I had to add the "--app".

I think the op command is for 1Password CLI not the GUI application. I'm not sure what command to call to run it from the VSO container or to export it as an app in the menu.

kbdharun commented 3 months ago

I'm happy to help with docs, is there a repo/PR for adding these sorts of docs?

Sure, our documentation's source can be found at https://github.com/Vanilla-OS/documentation and our handbook's source can be found at https://github.com/Vanilla-OS/handbook. Till now I have been working on other tasks with the project so wasn't able to focus on docs, will probably complete it before stable (already have some drafts for new pages/sections similar to Fedora Docs/Arch Wiki). If you are interested in writing/porting docs, feel free to start a discussion at https://github.com/Vanilla-OS/documentation/discussions/categories/general about a tool/topic you are interested in, I can contact you in future for the same.

I managed to export Sublime Text 4 (installing the .deb) using vso export --app subl, note I had to add the "--app".

Yep, you are right vso export <app> is the old syntax; newer versions of VSO in Orchid need the --app flag.

I think the op command is for 1Password CLI not the GUI application. I'm not sure what command to call to run it from the VSO container or to export it as an app in the menu.

I think it's 1password (from what I can see here https://support.1password.com/install-linux/#debian-or-ubuntu), you can try vso export --app 1password.

mirkobrombin commented 3 months ago

No much we can do here, we use the package name to export the program, sometime that does not match the desktop entry name

hozza commented 3 months ago

I think it's 1password (from what I can see here https://support.1password.com/install-linux/#debian-or-ubuntu), you can try vso export --app 1password.

I've tried this, with no luck. Install via side load says it was successful but no op or 1password commands can be found in the container/terminal. And, the vso export --app 1password is not working either. I wonder is there another issue with side load installations here. Perhaps you could try the deb install of 1password on your end? I'm not sure how to make the sideload logs that flash by, persist beyond install completion.

Also, the sideload app seems to allow multiple installs, one after another, of the same deb files. I wonder if it should error if it detects a pre-existing install.

hozza commented 3 months ago

No much we can do here, we use the package name to export the program, sometime that does not match the desktop entry name

Could you find/parse any created desktop files and get the correct command from there even if the name does not match?

mirkobrombin commented 3 months ago

The problem is understanding which desktop entries have been added, generating a before and after diff may not be an optimal solution

hozza commented 3 months ago

Can you watch the directory/inodes for modification time or perhaps files created within the last x seconds etc?

On 29 May 2024 21:37:23 BST, Mirko Brombin @.***> wrote:

The problem is understanding which desktop entries have been added, generating a before and after diff may not be an optimal solution

-- Reply to this email directly or view it on GitHub: https://github.com/Vanilla-OS/vanilla-system-operator/issues/121 You are receiving this because you authored the thread.

Message ID: @.***>

mirkobrombin commented 3 months ago

It's definitely a solution but honestly I don't like it very much, I would like to think about it better. Maybe analyze the package before installing it if possible

hozza commented 3 months ago

An update for installing 1password deb with a sideload and exporting.

I attempted the install for the 3rd time, and this time it worked. No changes in the Sideload app, all 3 attempts said success, but only this time is 1password is actually available in the terminal and exported to the menu (although with no icon).

Maybe there was some error (networking?) during the previous installs that was not detected by the Sideload GUI.

muhdsalm commented 2 months ago

I'd like to be assigned to this. I've got it working and I've just got some cleanup left.