From 807e80acbe9ab7803bbc5cac1bd0f4644569cf45 Mon Sep 17 00:00:00 2001 From: Dimitrij Date: Wed, 12 Jan 2022 16:32:40 +0000 Subject: [PATCH] Add missed credits file Fix opening link in about form for .net 6 --- CREDITS.md | 127 +++++++++++++++++++++++++++++++++ mRemoteNG/UI/Forms/FrmAbout.cs | 38 +++++++++- 2 files changed, 162 insertions(+), 3 deletions(-) create mode 100644 CREDITS.md diff --git a/CREDITS.md b/CREDITS.md new file mode 100644 index 000000000..2b8955f91 --- /dev/null +++ b/CREDITS.md @@ -0,0 +1,127 @@ +# Contributors + +## Current mRemoteNG dev team + +[David Sparer](http://github.com/sparerd) +[Sean Kaim](http://github.com/kmscode) +[Faryan Rezagholi](http://github.com/farosch) +[Bennett Blodinger](http://github.com/benwa) + +[Joe Cefoli](http://github.com/jcefoli) +[countchappy](http://github.com/countchappy) +Tony Lambert +[Julien Roncaglia](http://github.com/vbfox) +[peterchenadded](http://github.com/peterchenadded) +[Brandon Wulf](http://github.com/mrwulf) +[Pedro Rodrigues](http://github.com/pedro2555) +[dekelMP](http://github.com/dekelMP) +[Bruce](http://github.com/brucetp) +[Camilo Alvarez](http://github.com/jotatsu) +[DamianBis](http://github.com/DamianBis) +[pfjason](http://github.com/pfjason) +[sirLoaf](http://github.com/sirLoaf) +[Fyers](http://github.com/Fyers) +[Vladimir Semenov](http://github.com/sli-pro) +[Stephan](http://github.com/st-schuler) +[Aleksey Reytsman](http://github.com/areytsman) +[Cristian Abelleira](http://github.com/CrAbelleira) +[MitchellBot](http://github.com/MitchellBot) +[Filippo Ferrazini](http://github.com/Filippo125) + +## Past Contributors + +Felix Deimel - mRemote original developer +Riley McArdle - mRemoteNG original developer + +[Hayato Iriumi](http://github.com/hiriumi) +Jason Barbier +Wiktor Beryt +Lionel Caignec +Ruben d'Arco +Holger Henke +Tom Hiller +Apisitt Rattana +Andreas Rehm +David Vidmar +[Brandhor](http://github.com/Brandhor) +[Dimitrij](http://github.com/Kvarkas) + +## Translators + +Eugenio "Ryo567" Martínez +Mathieu Pape +Emanuel Silva +Robert Siwiec +Hayato Iriumi +[Sebastien Thieury](http://github.com/SebThieu) +Riza Emet +[Lukas Plachy](http://github.com/rheingold) +Gyuha Shin +[Stefan](http://github.com/polluks) +[emazv72](http://github.com/emazv72) +[Vladimir Semenov](http://github.com/sli-pro) +[Marco Sousa](http://github.com/marcomsousa) +[wwj402](http://github.com/wwj402) +[Fyers](http://github.com/Fyers) +[pablomh](http://github.com/pablomh) +[Damian Szczepanik](http://github.com/damianszczepanik) +[Mant1kor](http://github.com/Mant1kor) + +# Included Source Code + +**[Command Line Arguments Parser](http://www.codeproject.com/KB/recipes/command_line.aspx)** +Copyright © 2002 Richard Lopes +MIT License + +**[FilteredPropertyGrid](http://www.codeproject.com/KB/cs/FilteredPropertyGrid.aspx)** +Copyright © 2006 Azuria + +**[InputBox](http://www.csharp-examples.net/inputbox/)** +Copyright © 2016 Jan Slama + +**[IP TextBox](http://www.codeproject.com/Articles/11576/IP-TextBox)** +Copyright © 2005 mawnkay + +**[PortableSettingsProvider](https://github.com/crdx/PortableSettingsProvider)** +Copyright © 2014 crdx + +**[ADTree](http://www.codeproject.com/KB/selection/ADPickerCtrl.aspx)** +Copyright © 2004 Marc Merritt © 2008 Felix Deimel + +# Included Components + +**[CefSharp](https://github.com/cefsharp/CefSharp)** +Copyright © The CefSharp Authors +MIT License + +**[DockPanel Suite](https://github.com/dockpanelsuite/dockpanelsuite)** +Copyright © 2018 @roken and @lextm (formerly Weifen Luo) +MIT License + +**[log4net](http://logging.apache.org/log4net/)** +Copyright © 2001-2015 The Apache Software Foundation +Apache License Version 2.0 + +**[PuTTY](http://www.chiark.greenend.org.uk/~sgtatham/putty/)** +Copyright © 1997-2017 Simon Tatham +MIT License + +**[Silk Icon Set](http://www.famfamfam.com/)** +Copyright © 2005-2008 FAMFAMFAM +Creative Commons Attribution 2.5 License + +**[SSH.NET](https://github.com/sshnet/SSH.NET)** +Copyright © 2016 +MIT License + +**[VncSharp](https://github.com/humphd/VncSharp) (Archived)** +Copyright © 2004-2009 David Humphrey +GNU General Public License (GPL) Version 2 + +**[ObjectListView](https://sourceforge.net/projects/objectlistview/)** +Copyright © 2006-2016 Phillip Piper +GNU General Public License (GPL) Version 3 + +**[ConsoleControl](https://github.com/dwmkerr/consolecontrol)** +Copyright © 2015 Dave Kerr +MIT License diff --git a/mRemoteNG/UI/Forms/FrmAbout.cs b/mRemoteNG/UI/Forms/FrmAbout.cs index 35632f00e..5beba9de6 100644 --- a/mRemoteNG/UI/Forms/FrmAbout.cs +++ b/mRemoteNG/UI/Forms/FrmAbout.cs @@ -3,6 +3,9 @@ using System.Windows.Forms; using mRemoteNG.App.Info; using mRemoteNG.Themes; using mRemoteNG.Resources.Language; +using System.Reflection; +using mRemoteNG.Properties; +using System.Runtime.InteropServices; namespace mRemoteNG.UI.Forms { @@ -52,20 +55,49 @@ namespace mRemoteNG.UI.Forms private void llLicense_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { - Process.Start("https://github.com/mRemoteNG/mRemoteNG/blob/develop/COPYING.TXT"); + OpenUrl("https://raw.githubusercontent.com/mRemoteNG/mRemoteNG/v" + Assembly.GetExecutingAssembly().GetName().Version.ToString().Substring(0, Assembly.GetExecutingAssembly().GetName().Version.ToString().Length - 2) + "-" + Settings.Default.CurrentUpdateChannelType + "/COPYING.TXT"); Close(); } private void llChangelog_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { - Process.Start("https://github.com/mRemoteNG/mRemoteNG/blob/develop/CHANGELOG.md"); + OpenUrl("https://raw.githubusercontent.com/mRemoteNG/mRemoteNG/v" + Assembly.GetExecutingAssembly().GetName().Version.ToString().Substring(0, Assembly.GetExecutingAssembly().GetName().Version.ToString().Length - 2) + "-" + Settings.Default.CurrentUpdateChannelType + "/CHANGELOG.md"); Close(); } private void llCredits_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { - Process.Start("https://github.com/mRemoteNG/mRemoteNG/blob/develop/CREDITS.md"); + OpenUrl("https://raw.githubusercontent.com/mRemoteNG/mRemoteNG/v" + Assembly.GetExecutingAssembly().GetName().Version.ToString().Substring(0, Assembly.GetExecutingAssembly().GetName().Version.ToString().Length - 2) + "-" + Settings.Default.CurrentUpdateChannelType + "/CREDITS.MD"); Close(); } + + private void OpenUrl(string url) + { + try + { + Process.Start(url); + } + catch + { + // hack because of this: https://github.com/dotnet/corefx/issues/10361 + if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) + { + url = url.Replace("&", "^&"); + Process.Start(new ProcessStartInfo("cmd", $"/c start {url}") { CreateNoWindow = true }); + } + else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) + { + Process.Start("xdg-open", url); + } + else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) + { + Process.Start("open", url); + } + else + { + throw; + } + } + } } } \ No newline at end of file