Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Auto-Launch Wine Application With FFXIV In Prefix #74

Open
viscountexx opened this issue Sep 19, 2023 · 7 comments · May be fixed by #31
Open

[Feature] Auto-Launch Wine Application With FFXIV In Prefix #74

viscountexx opened this issue Sep 19, 2023 · 7 comments · May be fixed by #31
Labels
enhancement New feature or request

Comments

@viscountexx
Copy link

viscountexx commented Sep 19, 2023

I currently use the Wine Explorer to launch an application every time I start FFXIV. I could probably find exactly how to set up a script to run what I need (https://github.com/0e4ef622/wine-discord-ipc-bridge/ specifically, for the Discord Rich Presence plugin to work on Linux), but it would be really nice to be able to set certain applications to run in Wine whenever I run FFXIV via the launcher, and I'm sure there's all sorts of other power user gremlins who'd also love this.

Definitely not some high priority need, of course.

@NotNite
Copy link
Contributor

NotNite commented Sep 19, 2023

We already have (had? dunno if we kept it) a similar system inside of the Windows launcher, so this likely isn't very difficult.

@sersorrel
Copy link
Contributor

sersorrel commented Sep 19, 2023

agreed that this would be useful - but for wine-discord-ipc-bridge in particular, you can avoid having to start it manually by using 0e4ef622/wine-discord-ipc-bridge#33

@viscountexx
Copy link
Author

agreed that this would be useful - but for wine-discord-ipc-bridge in particular, you can avoid having to start it manually by using 0e4ef622/wine-discord-ipc-bridge#33

Oh, this looks amazingly helpful, thank you!

@reiichi001
Copy link
Contributor

reiichi001 commented Sep 19, 2023

The Linux channel on our discord also has a script you can use to start other addons without having to do it fofrom wine explorer. (I'd copy it, but it's a pain on mobile to fix formatting)

https://discord.com/channels/581875019861328007/850387047927250944/1019925861111181353

There is also #31 which is still under review.

@Blooym Blooym added the enhancement New feature or request label Oct 3, 2023
@Blooym Blooym linked a pull request Oct 3, 2023 that will close this issue
@coldReactive
Copy link

coldReactive commented Jul 16, 2024

agreed that this would be useful - but for wine-discord-ipc-bridge in particular, you can avoid having to start it manually by using 0e4ef622/wine-discord-ipc-bridge#33

There is, alternatively, a user systemd approach to this. Using XenHat's Service Script: https://gitlab.com/XenHat/dotfiles/-/blob/main/snowblocks/scripts/scripts/ffxiv_rpc_service and installing the ipc bridge as per normal.

  1. Copy the contents of the above linked file on gitlab into ~/scripts/ffxiv_rpc
  2. Put the below code into ~/.config/systemd/user/ffxiv_rpc.service
[Unit]
Description=Discord Rich Presence Service for FFXIV

[Service]
Type=simple
ExecStart=%h/scripts/ffxiv_rpc

[Install]
WantedBy=default.target
  1. Enable it through systemctl --user enable ffxiv_rpc as explained per https://wiki.archlinux.org/title/Systemd/User

Thanks to the Arch Forums for giving me the proper service file syntax to reference the home directory as well: https://bbs.archlinux.org/viewtopic.php?id=297777#p2184333

You should NOT run this service at a system level.

If you want the service to run immediately alongside enabling it above in step 3, add --now option to the command.

@viscountexx
Copy link
Author

agreed that this would be useful - but for wine-discord-ipc-bridge in particular, you can avoid having to start it manually by using 0e4ef622/wine-discord-ipc-bridge#33

There is, alternatively, a user systemd approach to this. Using XenHat's Service Script: https://gitlab.com/XenHat/dotfiles/-/blob/main/snowblocks/scripts/scripts/ffxiv_rpc_service and installing the ipc bridge as per normal.

1. Copy the contents of the above linked file on gitlab into `~/scripts/ffxiv_rpc`

2. Put the below code into `~/.config/systemd/user/ffxiv_rpc.service`
[Unit]
Description=Discord Rich Presence Service for FFXIV

[Service]
Type=simple
ExecStart=%h/scripts/ffxiv_rpc

[Install]
WantedBy=default.target
3. Enable it through `systemctl --user enable ffxiv_rpc` as explained per https://wiki.archlinux.org/title/Systemd/User

Thanks to the Arch Forums for giving me the proper service file syntax to reference the home directory as well: https://bbs.archlinux.org/viewtopic.php?id=297777#p2184333

You should NOT run this service at a system level.

Holy shit, that's amazing! I'll turn this into a nix home-manager config very soon (and probably share it here in case anyone wants it), thank you so much!

@coldReactive
Copy link

XenHat provided a slightly better service configuration over at https://gitlab.com/XenHat/dotfiles/-/blob/main/snowblocks/systemd/ffxiv-rpc-glue.service

Which should exit when it detects itself no longer doing anything. It should go into the same place as before (and make sure to remove the old service file and use the new one), or just copy the code over.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants