試験運用中なLinux備忘録・旧記事

はてなダイアリーで公開していた2007年5月-2015年3月の記事を保存しています。

cfgforsfをドラッグ・アンド・ドロップで使用するためのGUIフロントエンドを作成

あたりでドラッグ・アンド・ドロップについての方法を探っていたのだが、これを利用した例という意味も込めて

で扱ったcfgforsfをD&Dで使用するためのGUIツールを作成した。
(2014/10/11)
kakurasan.ehoh.net/software/gtk-cfgforsf/
で公開を行っていたが、既に終了した。
Wine上のWin32版PyGTKでは動作を確認できなかった(ウィンドウが表示されずに固まる?)が、Windowsでは
www15.atwiki.jp/timidity/pages/15.html
に同じようなツール(createcfg)があるようだ。ちなみにこのツールは.NETアプリケーションのようなのでウィンドウはMonoで動くのだが、GNU/Linux上では一時バッチファイルが実行できず?に失敗する。

$ mono createcfg_2/CreateCFG.exe
(D&D実行後)
MWF: Exception while dropping:
System.ComponentModel.Win32Exception: ApplicationName='tempbat.bat', CommandLine='', CurrentDirectory=''
  at System.Diagnostics.Process.Start_noshell (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) [0x00000] 
  at System.Diagnostics.Process.Start_common (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) [0x00000] 
  at System.Diagnostics.Process.Start () [0x00000] 
  at (wrapper remoting-invoke-with-check) System.Diagnostics.Process:Start ()
  at Form1.Label11_DragDrop (System.Object sender, System.Windows.Forms.DragEventArgs e) [0x00000] 
  at System.Windows.Forms.Control.OnDragDrop (System.Windows.Forms.DragEventArgs drgevent) [0x00000] 
  at System.Windows.Forms.Control.DndDrop (System.Windows.Forms.DragEventArgs e) [0x00000]