It will automatically hide system users (UID < 1000)
To hide ordinary users from the login list create or edit a file named after the user to hide in /var/lib/AccountsService/users/
to contain at least:
/var/lib/AccountService/users/username
[User]
SystemAccount=true
Linux
2018.11.02 10:55
Hide user from login list
조회 수 2678 추천 수 0 댓글 0
Linux
2018.08.23 10:34
pipe viewer
조회 수 507 추천 수 0 댓글 0
CSharp
2017.12.29 16:19
윈도우 타이틀명으로 창닫기
조회 수 1567 추천 수 0 댓글 0
예제코드
[DllImport("user32.dll")] public static extern IntPtr FindWindow(string lpClassName, string lpWindowName); [DllImport("user32.dll")] public static extern int SendMessage(IntPtr hWnd, uint Msg, int wParam, int lParam); [DllImport("user32.dll")] public static extern int SetForegroundWindow(IntPtr hWnd); public void CloseWindowByTitleText(string titleTxt) { try { if (titleTxt.Length > 0) { IntPtr hWnd = FindWindow(null, titleTxt); if (hWnd != IntPtr.Zero) { SetForegroundWindow(hWnd); // 윈도우 활성화 SendMessage(hWnd, 0x0010, 0, 0); // 종료 메시지 보냄 // SendKeys.Send("{ENTER}"); // 엔터키를 누름 // SendMessage(hWnd, 0x102, (int)Keys.Enter, 0); // 엔터키 메시지를 보냄 } } } catch (Exception err) { Console.WriteLine(err.StackTrace); } }
CSharp
2017.11.10 10:43
Properties config 파일 위치 열기
조회 수 357 추천 수 0 댓글 0
string path = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.PerUserRoamingAndLocal).FilePath; MessageBox.Show(path); if (File.Exists(path)) { Process.Start(new ProcessStartInfo("explorer.exe", " /select, " + path)); }
Linux
2017.10.17 17:24
Fedora / archive url
조회 수 240 추천 수 0 댓글 0
http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/