bubblejail icon indicating copy to clipboard operation
bubblejail copied to clipboard

Add a option to not rename desktop entries when generating them

Open effectsbot opened this issue 3 months ago • 5 comments

Description

The current behavior of bubblejail generate-desktop-entry sets the Name entry key of a desktop entry to <name of executable> bubble. I prefer having that variable untouched, since I already know that the application is sandboxed.

effectsbot avatar Sep 27 '25 13:09 effectsbot

Hello @effectsbot

This is certainly possible. The main idea behind adding Name={Name} bubble is to make it very obvious that the desktop entry was modified.

igo95862 avatar Sep 27 '25 13:09 igo95862

Hmm... I think maybe there should be an option to set the Name= key that formatted? For example, --format-name='{Name} bubble' where {Name} will be replaced with original key.

igo95862 avatar Sep 27 '25 15:09 igo95862

Hmm... I think maybe there should be an option to set the Name= key that formatted? For example, --format-name='{Name} bubble' where {Name} will be replaced with original key.

Sounds good to me. I know this was just an example, but I think bubble should be in round brackets, just so it is separated from the rest of the name. Maybe that could be the default naming scheme instead of what we currently have.

effectsbot avatar Sep 27 '25 15:09 effectsbot

Hmm... I think maybe there should be an option to set the Name= key that formatted? For example, --format-name='{Name} bubble' where {Name} will be replaced with original key.

Sounds good to me. I know this was just an example, but I think bubble should be in round brackets, just so it is separated from the rest of the name. Maybe that could be the default naming scheme instead of what we currently have.

Good idea. I will look in to it.

igo95862 avatar Sep 27 '25 16:09 igo95862

I changed the overwritten desktop entry names to (bubble) in 1dfd50fb1e454927ffe7c2aef16c131a3053dcd9.

There is a second type of desktop entries where it is created from scratch. I kept its name as {instance_name} bubble.

I will add an option to format the Name key in the future.

igo95862 avatar Sep 27 '25 19:09 igo95862