-
Notifications
You must be signed in to change notification settings - Fork 270
-
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.
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 8 comments 10 replies
-
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.
Beta Was this translation helpful? Give feedback.
All reactions
-
I'm sorry. Currently, there're no plans to add this feature.
Beta Was this translation helpful? Give feedback.
All reactions
-
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.
If I open it manually, it shows preferences dialog.
Beta Was this translation helpful? Give feedback.
All reactions
-
I haven't seen such a Git GUI Client that offers this. And I really do NOT want to add it to SourceGit.
Beta Was this translation helpful? Give feedback.
All reactions
-
Please, check SmartGit.
This option is in its low-level properties.
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.
Beta Was this translation helpful? Give feedback.
All reactions
-
如果可以通过配置,进行开启这个功能,默认关闭,也不是不行。
Beta Was this translation helpful? Give feedback.
All reactions
-
- 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.
Beta Was this translation helpful? Give feedback.
All reactions
-
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); }
Beta Was this translation helpful? Give feedback.
All reactions
-
- Keeping
SourceGit
running in background may cause issue like The configured user limit (128) on the number of inotify instances has been reached... #411
So, currently it is not recommended to leave SourceGit running, right?
Beta Was this translation helpful? Give feedback.
All reactions
-
I know. What I mean is that it's not necessary to keep this app running background
Beta Was this translation helpful? Give feedback.
All reactions
-
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.
Beta Was this translation helpful? Give feedback.
All reactions
-
Beta Was this translation helpful? Give feedback.
All reactions
-
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.
Beta Was this translation helpful? Give feedback.
All reactions
-
You can see Yakuake icon on one of my earlier screenshots.
Beta Was this translation helpful? Give feedback.
All reactions
-
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
Beta Was this translation helpful? Give feedback.
All reactions
-
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?
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 1
-
Could anyone check my PR #868 on Macos?
Beta Was this translation helpful? Give feedback.