WolverineFan / YNABLinuxInstall

Install script for YNAB 4 on Linux
174 stars 18 forks source link

Add a YNAB launch script to /usr/bin #6

Closed Tritlo closed 9 years ago

Tritlo commented 10 years ago

Could you add a launch script to /usr/bin automatically? My current script reads

#!/usr/bin/env bash

env WINEPREFIX=~/.wine_YNAB4/ wine C:\\Program\ Files\ \(x86\)\\YNAB\   4\\YNAB\ 4.exe

but this should probably be dependent on the selected prefix. This will also require sudo to create the script. I'd do it myself, but I don't know perl!

ElliotFriend commented 10 years ago

I gave your script a run, and it works perfectly. I'm curious though, is that the only way you have to run YNAB4 through wine? What distro are you using?

I typically use Mint and an icon shows up under "Wine" in the system menu.

Tritlo commented 10 years ago

I'm currently running Arch, with Xmonad. There's no System menu here, only dmenu, which allows me to run things as if from command line.

WolverineFan commented 10 years ago

I suppose I could add an option to do that. Since wine programs are installed per user, I don't know if it's something many people will want, but it could be nice for those that do.

ElliotFriend commented 10 years ago

@Tritlo I've always wanted to meet someone who actually uses Xmonad!! I can cross that off my bucket-list :-D

I looked at the link that was automatically created for me (I'm assuming by wine), and the command it issues is:

env WINEPREFIX="/home/elliot/.wine_YNAB4" wine C:\\windows\\command\\start.exe /Unix /home/elliot/.wine_YNAB4/dosdevices/c:/users/Public/Start\ Menu/Programs/YNAB\ 4/YNAB\ 4.lnk

Maybe we ought to use that? Or is the extra verbosity not worth it, when the script provided by @Tritlo works as advertised? I'm not too familiar with wine best practices, so I don't know the benefits of one approach over the other.

WolverineFan commented 10 years ago

Interesting. My auto-created link is:

env WINEPREFIX="/home/jyoder9/.wine_YNAB4" wine C:\\Program\ Files\ \(x86\)\\YNAB\ 4\\YNAB\ 4.exe 

Which was from Wine 1.6 on Mint. Anyway, I don't think there's much difference in the end. After I pull in Elliot's new version I'll get this added.