[Solved]Clicking a link in an email causes Opera to only open a new empty tab (i.e. speed dial)
-
kanon last edited by
I googled "opera startup script" but didn't find anything. @sgunhouse, I assume you're talking about an Opera startup script, as I can't see what my Ubuntu startup script would have to do with how Opera accepts a clicked link and opens it. Can you (or anyone else) tell me more about this startup script or have any other advice as to how I might fix my problem?
-
sgunhouse Moderator Volunteer last edited by
The file found when you type "opera" on a command prompt is a script, it sets a few system variables before calling the actual opera binary. Every once in a while they make a mistake in the script and forget to pass the command line to the binary.
I run the Developer version and thus can't tell you what the stable version has in its script at this point. The Developer version works properly when I click a link in my email, so I'll assume it's an error in the script as described - unless it's a setting in your email software as to what program is called and how. But as you said it also happens from a terminal, I guess we can exclude the email program.
-
kanon last edited by
I see. Thanks for the info. I did a "
find . -iname opera
" on /usr, and came up with: "/usr/share/bash-completion/completions/opera
". Is this the script you're talking about?If the problem is in this script, though, wouldn't this be a widespread problem? I'd think something like that would have been reported and fixed already. Regardless, it'd be good to investigate this angle, so I'm wondering if you could post your script or suggest any changes to mine?
My Opera bash-completion script:
# opera(1) completion -*- shell-script -*- _opera() { local cur prev words cword _init_completion || return case "$prev" in ?(-)-widget|?(-)-urllist|?(-)-uiparserlog|?(-)-uiwidgetsparserlog|\ ?(-)-profilinglog) _filedir return ;; ?(-)-[psb]d) _filedir -d return ;; ?(-)-remote) COMPREPLY=( $( compgen -W 'openURL\\( openFile\\( openM2\\( openComposer\\( addBookmark\\( raise\\(\\) lower\\(\\)' \ -- "$cur" ) ) [[ $COMPREPLY == *\( ]] && compopt -o nospace return ;; ?(-)-windowname) COMPREPLY=( $( compgen -W 'first last opera{1..9}' -- "$cur" ) ) return ;; ?(-)-geometry|?(-)-window|?(-)-display|?(-)-urllistloadtimeout|\ ?(-)-delaycustomizations|?(-)-dialogtest|?(-)-inidialogtest|\ ?(-)-gputest) # argument required but no completions available return ;; esac if [[ "$cur" == -* ]]; then COMPREPLY=( $( compgen -W '$( _parse_help "$1" -help )' -- "$cur" ) ) [[ $COMPREPLY == *= ]] && compopt -o nospace return fi _filedir '@(?([xX]|[sS])[hH][tT][mM]?([lL]))' } && complete -F _opera opera # ex: ts=4 sw=4 et filetype=sh
-
kanon last edited by
That would be very strange as I haven't used Opera 12 on this computer. Could it be that when I copied over my ~/.config/opera/ directory something from Opera 12 came over from way back when I did??? And then this something caused a change in /usr/share/bash-completion/completions/opera that persisted even after I purged and reinstalled Opera from scratch???
-
kanon last edited by
I deleted /usr/share/bash-completion/completions/opera completely now, and Opera behaves the same: links clicked in an email and the terminal still just bring up an empty (i.e. speed dial) tab.
Any help?
-
kanon last edited by
Upgraded to Opera 42.0.2393.94, and it's still happening. Why? This is so weird. What can be done to fix it?
-
kanon last edited by
Yes, Thunderbird, but it also happens when opening a link from the terminal. This is why it seems like definitely an Opera problem.
-
kanon last edited by
I finally found a solution to this issue here. It was option 2 in Ronald P's answer.
Basically, somehow my
~/.local/share/applications/opera.desktop
file got messed up:[Desktop Entry] Encoding=UTF-8 Version=1.0 Type=Application Name=(72) Facebook - Opera Icon=opera Exec=/usr/lib/x86_64-linux-gnu/opera/opera StartupNotify=false StartupWMClass=Opera OnlyShowIn=Unity; X-UnityGenerated=true MimeType=x-scheme-handler/unknown;x-scheme-handler/about;x-scheme-handler/https;x-scheme-handler/http;text/html;
Adding
%U
to the end of theExec=
line fixed it. (And, of course, I got rid of "(72) Facebook - " in theName=
line. How the heck did this happen??? Dunno, but this is how to fix it in case anyone else has this problem. Man, I tolerated this problem for MONTHS! Glad it's finally fixed.