-
-
Notifications
You must be signed in to change notification settings - Fork 112
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
Show running branch if not master #1258
Conversation
Converting to draft while fixing CI (absence of git) issue. |
Do the branch name is needed? or only a indicative that we are running a development version? i think we can use the |
For the case of installing and testing a branch of an app when you are working on several branches of that app at once it would be helpful to know which branch is actually installed. However, your solution would be simpler and would not need to be customised for each app. |
@danirabbit There does not seem to be any simple reliable way to extract the development focus using |
@Marukesu Would we need a CssProvider for the |
@jeremypw for now, i believe. the if this end being a common pattern in elementary apps, they could be implemented in the elementary stylesheet itself as it is in Adwaita.
one way to implement the branch name i believe is to put it in the window title/desktop file if built with a |
@Marukesu Thanks for suggestions! I'll try to implement those. |
one thing i noticed is that the window title don't appears in the dock label. Also, it would be good if we put a label with the title in the header bar when we are in the placeholder view. |
That's a good idea - I'll do that. |
@Marukesu I am not familiar with Plank code. I can see that one way of changing the tooltip would be to generate a different "Name" key in the |
@Marukesu The latest commit implements the idea of changing the desktop file in order for the tooltip in the dock to display the branch name. This, of course, prevents translation but I assume that is not a problem. Translation occurs as normal when not installing a branch with the development option. |
I can confirm that it is now possible to run a branch instance alongside a master instance. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good. One thing that could be done in a future PR is allowing not only parallel execution, but parallel installation too.
… This, of course, prevents translation but I assume that is not a problem. Translation occurs as normal when not installing a branch with the development option.
I would assume Code
isn't meant to be translated anyway. so yeah, i don't see a problem either.
Thanks @Marukesu. I'll merge now and we can refine as required in another PR. I guess for dual installation we will have to generate a desktop file with a different name? Would a single name such as |
Another speculative development aid.
This makes it discoverable which branch of Code is running if not master. This can be useful when switching between master and the development branch for comparison and there is no other visual cue. Also for knowing which branch you are currently dogfooding.
For simplicity and compatibility with other apps, the branch is exposed in the window title.
In order for the modified window title to be shown, the project needs to be built with the meson option
-Ddevelopment=true
.