Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

System tray icon #805

Unanswered
wl2776 asked this question in Q&A
Dec 11, 2024 · 8 comments · 10 replies
Discussion options

Is there any way to make SourceGit running permanently and hide into system tray on closing main window?

When I close SourceGit's main window, I'd like to have it running, just hide into the system tray.

You must be logged in to vote

Replies: 8 comments 10 replies

Comment options

I've quickly checked in a fork: system tray icon works in KUbuntu 24.04.

However, I'm not very familiar with C# and .Net, so my development of this feature will be very slow.

You must be logged in to vote
0 replies
Comment options

I'm sorry. Currently, there're no plans to add this feature.

You must be logged in to vote
0 replies
Comment options

I've started implementing this feature in https://github.com/wl2776/sourcegit/tree/feature/system-tray-icon

Could you point me to a documentation or tutorials? I cannot figure out how to make main window to unminimize.

I right-click on system tray icon, then click on "Preferences" menu. However, main window does not appear.

image

If I open it manually, it shows preferences dialog.

You must be logged in to vote
0 replies
Comment options

I haven't seen such a Git GUI Client that offers this. And I really do NOT want to add it to SourceGit.

You must be logged in to vote
1 reply
Comment options

Please, check SmartGit.
This option is in its low-level properties.

image

image

And I really do NOT want to add it to SourceGit.

This could be turned off by default, and switched on by editing config file. I will figure out how to do it.

Comment options

如果可以通过配置,进行开启这个功能,默认关闭,也不是不行。

You must be logged in to vote
6 replies
Comment options

  • We have done lots of works to improve the speed to open a repository.

Application launch takes about 3-4 seconds on my Omen HP notebook wih AMD Ryzen 9.
Hiding into system tray and restoring from it takes less than one second.

Comment options

  • SourceGit is just a GUI frontend of git that used to display the current status of repository. There're no background servers started by it.

My PR does not add any background services, it just changes processing of the Closing event in src/Views/Launcher.axaml.cs:

 protected override void OnClosing(WindowClosingEventArgs e)
 {
 var pref = ViewModels.Preference.Instance;
 if (pref.SystemTrayIcon) {
 e.Cancel = true;
 Hide();
 } else {
 (DataContext as ViewModels.Launcher)?.Quit(Width, Height);
 }
 base.OnClosing(e);
 }
Comment options

So, currently it is not recommended to leave SourceGit running, right?

Comment options

I know. What I mean is that it's not necessary to keep this app running background

Comment options

I know. What I mean is that it's not necessary to keep this app running background

But what if I want to keep it running?

For me, personally, the answer is known :)

I believe, I'm not the only one.

Comment options

I don't understand that. Do you want to keep the system file manager running background?It is very similar to this app - just a simple GUI frontend of file system.
You must be logged in to vote
3 replies
Comment options

I always have running a terminal application and a file manager (Krusader and Far2l), very often I launch several copies of them.

My Linux is configured to launch Yakuake on startup.

Comment options

You can see Yakuake icon on one of my earlier screenshots.

image

Comment options

Do you want to keep the system file manager running background?

Please, take a look at Double Commander.

It is a file manager with the system tray icon.
image

Comment options

I've found the issue.
If SourceGit is already running, then launching SourceGit from the OS launcher creates one more system tray icon.

This is not what I'd like to see.

Does SourceGit have anything like single instance mode?

You must be logged in to vote
0 replies
Comment options

Could anyone check my PR #868 on Macos?

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /