Author Topic: Sizing Problem w/ Opera converting command from Peppermint to Ubuntu [SOLVED]  (Read 7246 times)

0 Members and 1 Guest are viewing this topic.

Offline perknh

  • Jr. Member
  • **
  • Posts: 36
  • Karma: 0
  • Gender: Male
  • Soy un loco huevo que adora La Menta.
    • View Profile
    • Awards
Hi PCNetSpec,

I'm trying to take the command I learned in Peppermint for resizing Opera and bring it to the launcher in Ubuntu 16,04,3 so that Opera browser size itself correctly.  I've tried playing with Gedit and Create launcher using this source, but I've had no luck.

Here's the command I'm trying to convert from Peppermint 8 Respin to Ubuntu Unity 16.04.3:

Code: [Select]
opera-beta  --window-size=1600,850  %U 

Any help or pointers figuring this out would be greatly appreciated.       

Thank you,

perknh
« Last Edit: December 31, 2017, 01:41:29 pm by perknh »

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 17664
  • Karma: 457
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
If running this command in a terminal:
Code: [Select]
opera-beta --window-size=1600,850
opens Opera with the right sized window...

First delete any user specific Opera launchers you've created at
~/.local/share/applications

Then edit the system wide launcher at:
Code: [Select]
sudo gedit /usr/share/applications/opera.desktop
and change it from:
Code: [Select]
[Desktop Entry]
Version=1.0
Name=Opera beta
GenericName=Web browser
Comment=Fast and secure web browser
TryExec=opera-beta
Exec=opera-beta %U
Terminal=false
Icon=opera-beta
Type=Application
Categories=Network;WebBrowser;
MimeType=text/html;text/xml;application/xhtml_xml;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;application/x-opera-download;
Actions=NewWindow;NewPrivateWindow;

[Desktop Action NewWindow]
Name=New Window
Exec=opera-beta --new-window
TargetEnvironment=Unity

[Desktop Action NewPrivateWindow]
Name=New Private Window
Exec=opera-beta --private
TargetEnvironment=Unity
to:
Code: [Select]
[Desktop Entry]
Version=1.0
Name=Opera beta
GenericName=Web browser
Comment=Fast and secure web browser
TryExec=opera-beta
Exec=bash -c "opera-beta --window-size=1600,850 %U"
Terminal=false
Icon=opera-beta
Type=Application
Categories=Network;WebBrowser;
MimeType=text/html;text/xml;application/xhtml_xml;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;application/x-opera-download;
Actions=NewWindow;NewPrivateWindow;

[Desktop Action NewWindow]
Name=New Window
Exec=bash -c "opera-beta --window-size=1600,850 --new-window"
TargetEnvironment=Unity

[Desktop Action NewPrivateWindow]
Name=New Private Window
Exec= bash -c "opera-beta --window-size=1600,850  --private"
TargetEnvironment=Unity
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline perknh

  • Jr. Member
  • **
  • Posts: 36
  • Karma: 0
  • Gender: Male
  • Soy un loco huevo que adora La Menta.
    • View Profile
    • Awards
I'm getting this warning in the terminal, PCNetSpec:

Code: [Select]
perknh@xerus:~$ sudo gedit /usr/share/applications/opera.desktop
[sudo] password for perknh:

(gedit:4363): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files

** (gedit:4363): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-spell-enabled not supported

** (gedit:4363): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-encoding not supported

I don't know what to make of it. :-\

[EDIT]

After a night's sleep, I got it!

Once I got to the applications folder manually, I ran your command as root through the terminal.  I then logged out and in, closed Opera-beta browser, and then reopened it.  It's now sizing itself as it should. 

Thank you, PCNetSpec! ;)

P.S.

I have to say it's easier tweaking applications in Peppermint (Xfce) than in Ubuntu (Unity).

« Last Edit: December 31, 2017, 01:42:43 pm by perknh »

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 17664
  • Karma: 457
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Great news perknh :)
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal