Repository: thewh1teagle/rookie (language: rust)

Issue:
[bug] Opera default cookies not found automatically on Linux
On a fresh flatpak install (from flathub) this does not work:
https://github.com/thewh1teagle/rookie/blob/94ad925f29dbe92dd14c45b0790c66c046cfc2d5/rookie-rs/src/linux/config.rs#L58-L67

The cookies file is accessible under the following path:
```~/.var/app/com.opera.Opera/config/opera/Default/Cookies```

Same for the version from snap, cookies file under
```~/snap/opera/*/.config/opera/Default/Cookies```.

Additionally, there are beta and developer versions also for the snap package available, e.g. with cookies files under
```~/snap/opera-developer/*/.config/opera-developer/Default/Cookies```

And probably also for the system-wide installed opera browsers … Thus, it looks like to be fixed easily ;)
[bug] Opera default cookies not found automatically on Linux
On a fresh flatpak install (from flathub) this does not work:
https://github.com/thewh1teagle/rookie/blob/94ad925f29dbe92dd14c45b0790c66c046cfc2d5/rookie-rs/src/linux/config.rs#L58-L67

The cookies file is accessible under the following path:
```~/.var/app/com.opera.Opera/config/opera/Default/Cookies```

Same for the version from snap, cookies file under
```~/snap/opera/*/.config/opera/Default/Cookies```.

Additionally, there are beta and developer versions also for the snap package available, e.g. with cookies files under
```~/snap/opera-developer/*/.config/opera-developer/Default/Cookies```

And probably also for the system-wide installed opera browsers … Thus, it looks like to be fixed easily ;)


Discussion / hints:

Fix patch:
diff --git a/rookie-rs/src/linux/config.rs b/rookie-rs/src/linux/config.rs
index a692a54..5403ba7 100644
--- a/rookie-rs/src/linux/config.rs
+++ b/rookie-rs/src/linux/config.rs
@@ -57,12 +57,23 @@ pub static VIVALDI_CONFIG: BrowserConfig<'static> = BrowserConfig {
 
 pub static OPERA_CONFIG: BrowserConfig<'static> = BrowserConfig {
   data_paths: &[
+    "~/snap/opera/*/.config/opera/Default/Cookies",
     "~/snap/opera/*/.config/opera/Cookies",
+    "~/.config/opera/Default/Cookies",
     "~/.config/opera/Cookies",
-    "~/.config/opera-beta/Cookies",
-    "~/.config/opera-developer/Cookies",
+    "~/.var/app/com.opera.Opera/config/opera/Default/Cookies",
     "~/.var/app/com.opera.Opera/config/opera/Cookies",
+    "~/snap/opera-beta/*/.config/opera/Default/Cookies",
+    "~/snap/opera-beta/*/.config/opera/Cookies",
+    "~/.config/opera-beta/Default/Cookies",
+    "~/.config/opera-beta/Cookies",
+    "~/.var/app/com.opera.Opera/config/opera-beta/Default/Cookies",
     "~/.var/app/com.opera.Opera/config/opera-beta/Cookies",
+    "~/snap/opera-developer/*/.config/opera/Default/Cookies",
+    "~/snap/opera-developer/*/.config/opera/Cookies",
+    "~/.config/opera-developer/Default/Cookies",
+    "~/.config/opera-developer/Cookies",
+    "~/.var/app/com.opera.Opera/config/opera-developer/Default/Cookies",
     "~/.var/app/com.opera.Opera/config/opera-developer/Cookies",
   ],
   channels: Some(&["Stable", "Next", "Developer"]),


Test patch: