Skip to content

Commit 180b155

Browse files
committed
Improve scuffed install error & help user resolve it
1 parent f99ff7c commit 180b155

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

.idea/VencordInstaller.iml

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gui.go

+16-2
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,17 @@ func RawInfoModal(id, title, description string, isOpenAsar bool) g.Widget {
275275
g.Style().SetFontSize(20).To(
276276
g.Label(description).Wrapped(isDynamic),
277277
),
278+
&CondWidget{id == "#scuffed-install", func() g.Widget {
279+
return g.Column(
280+
g.Dummy(0, 10),
281+
g.Button("Take me there!").OnClick(func() {
282+
// this issue only exists on windows so using Windows specific path is oki
283+
username := os.Getenv("USERNAME")
284+
programData := os.Getenv("PROGRAMDATA")
285+
g.OpenURL("file://" + path.Join(programData, username))
286+
}).Size(200, 30),
287+
)
288+
}, nil},
278289
g.Dummy(0, 20),
279290
&CondWidget{isOpenAsar,
280291
func() g.Widget {
@@ -445,8 +456,11 @@ func renderInstaller() g.Widget {
445456
"Then, verify Vencord installed successfully by looking for its category in Discord Settings"),
446457
InfoModal("#unpatched", "Successfully Unpatched", "You must now fully close Discord (from the tray)"),
447458
InfoModal("#scuffed-install", "Hold On!", "You have a broken Discord Install.\n"+
448-
"Please reinstall Discord before proceeding!\n"+
449-
"Otherwise, Vencord will likely not work.\n"),
459+
"Sometimes Discord decides to install to the wrong location for some reason!\n"+
460+
"You need to fix this before patching, otherwise Vencord will likely not work.\n\n"+
461+
"Use the below button to jump there and delete any folder called Discord or Squirrel.\n"+
462+
"If the folder is now empty, feel free to go back a step and delete that folder too.\n"+
463+
"Then see if Discord still starts. If not, reinstall it"),
450464
RawInfoModal("#openasar-confirm", "OpenAsar", "OpenAsar is an open-source alternative of Discord desktop's app.asar.\n"+
451465
"Vencord is in no way affiliated with OpenAsar.\n"+
452466
"You're installing OpenAsar at your own risk. If you run into issues with OpenAsar,\n"+

0 commit comments

Comments
 (0)