Miranda under Wine: Difference between revisions

From Miranda NG
Jump to navigation Jump to search
No edit summary
Line 5: Line 5:
{{TNT|Note|The following article was tested in Ubuntu 20.10.}}
{{TNT|Note|The following article was tested in Ubuntu 20.10.}}


=== OS Settings ===
== OS Settings ==
==== BSD ====
=== BSD ===
To get {{Plugin|CrashDumper}} plugin working you need to allow debugging for non-privileged users. This could be done by adding the following to <tt>sysctl</tt>:
To get {{Plugin|CrashDumper}} plugin working you need to allow debugging for non-privileged users. This could be done by adding the following to <tt>sysctl</tt>:
<pre style="overflow:auto;">
<pre style="overflow:auto;">
Line 12: Line 12:
</pre>
</pre>


==== Linux ====
=== Linux ===
Currently, Miranda can only work under Wine staging branch so remove installed Wine and [https://wiki.winehq.org/Download install winehq-staging].
Currently, Miranda can only work under Wine staging branch so remove installed Wine and [https://wiki.winehq.org/Download install winehq-staging].


=== Creating a separate Wine profile for Miranda ===
== Creating a separate Wine profile for Miranda ==
Create a separate directory for Wine to store its profile for work with Miranda:
Create a separate directory for Wine to store its profile for work with Miranda:
<pre style="overflow:auto;">
<pre style="overflow:auto;">
Line 25: Line 25:
</pre>
</pre>


=== Initializing Wine profile ===
== Initializing Wine profile ==
<pre style="overflow:auto;">
<pre style="overflow:auto;">
env WINEPREFIX=$HOME/.wines/miranda/ wine winecfg
env WINEPREFIX=$HOME/.wines/miranda/ wine winecfg
Line 32: Line 32:
* Click {{Button|OK}} to close.
* Click {{Button|OK}} to close.


=== Installing Miranda NG ===
== Installing Miranda NG ==
* [[Downloads|Download]] archive containing Miranda NG 64-bit portable.
* [[Downloads|Download]] archive containing Miranda NG 64-bit portable.
* Extract Miranda NG files to directory <tt>$HOME/.wines/miranda/drive_c/Miranda_NG/</tt>.
* Extract Miranda NG files to directory <tt>$HOME/.wines/miranda/drive_c/Miranda_NG/</tt>.


=== Starting Miranda NG ===
== Starting Miranda NG ==
Sample script to start Miranda (you can save it as <tt>$HOME/.wines/miranda/drive_c/Miranda_NG/Miranda64.sh</tt>):
Sample script to start Miranda (you can save it as <tt>$HOME/.wines/miranda/drive_c/Miranda_NG/Miranda64.sh</tt>):
<pre style="overflow:auto;">
<pre style="overflow:auto;">
Line 68: Line 68:
If you have no <tt>xdg-open</tt> in your system, you can specify the name of you favourite file manager and necessary run keys, e.g. <tt>thunar</tt>. If you do use <tt>xdg-open</tt> you can also associate any file type with its default system application.
If you have no <tt>xdg-open</tt> in your system, you can specify the name of you favourite file manager and necessary run keys, e.g. <tt>thunar</tt>. If you do use <tt>xdg-open</tt> you can also associate any file type with its default system application.


==== Further reading ====
=== Further reading ===
* [https://wiki.winehq.org/FAQ Wine FAQ]
* [https://wiki.winehq.org/FAQ Wine FAQ]
* [https://wiki.winehq.org/Winepath winepath]
* [https://wiki.winehq.org/Winepath winepath]

Revision as of 14:29, 11 February 2021

Linux is not a natively supported operating system, but Miranda is known to run on Linux under Wine.

Note
The following article was tested in Ubuntu 20.10.

OS Settings

BSD

To get CrashDumper plugin working you need to allow debugging for non-privileged users. This could be done by adding the following to sysctl:

security.bsd.unprivileged_proc_debug=1

Linux

Currently, Miranda can only work under Wine staging branch so remove installed Wine and install winehq-staging.

Creating a separate Wine profile for Miranda

Create a separate directory for Wine to store its profile for work with Miranda:

mkdir -p $HOME/.wines/miranda/

If $HOME variable isn't defined, replace it with path to your profile:

mkdir -p /home/USER/.wines/miranda/

Initializing Wine profile

env WINEPREFIX=$HOME/.wines/miranda/ wine winecfg
  • Decline installing the stuff (It's not needed to run Miranda).
  • Click OK to close.

Installing Miranda NG

  • Download archive containing Miranda NG 64-bit portable.
  • Extract Miranda NG files to directory $HOME/.wines/miranda/drive_c/Miranda_NG/.

Starting Miranda NG

Sample script to start Miranda (you can save it as $HOME/.wines/miranda/drive_c/Miranda_NG/Miranda64.sh):

#!/bin/sh
cd $HOME/.wines/miranda/drive_c/Miranda_NG/

env WINEPREFIX=$HOME/.wines/miranda/ wine Miranda64.exe

Select SQLite database driver and enter the desired database name. Tick "Start in service mode with: Import" if you already have Miranda database (for example, from Windows system) and want to keep using it. Press Create button (and perform import from the old database if you choose import on the previous step).

Additional Wine settings

The following settings are not necessary, but may improve usability.

Opening folders in the system file manager

By default Wine opens received files folder in its own explorer. You may find it more comfortable to view files that you receive from your contacts in your system file manager, e.g. when using MenuEx plugin.

  • Create file $HOME/.wines/miranda/drive_c/windows/open_on_host_sys.sh with contents:
#!/bin/sh

xdg-open "`winepath -u \"$1\"`"
  • Mark it as executable: chmod +x $HOME/.wines/miranda/drive_c/windows/open_on_host_sys.sh
  • Run registry editor: env WINEPREFIX=$HOME/.wines/miranda/ wine regedit
  • Create key (subsection) command in section HKEY_CLASSES_ROOT\folder\shell\open
  • In a created command key set default value: cmd /c start /b /min c:\windows\open_on_host_sys.sh "%1"

Pay attention to "cmd /c start" – the scripts won't run without it during testing.

If you have no xdg-open in your system, you can specify the name of you favourite file manager and necessary run keys, e.g. thunar. If you do use xdg-open you can also associate any file type with its default system application.

Further reading

More about Wine