can't open .vnc file anymore after upgrading ubuntu from 11.10 to 12.04

Bug #992724 reported by JZ
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
vinagre (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

This command "vinagre -f -F Documents/cyclsvl10.vnc" stopped working after upgrading ubuntu from 11.10 to 12.04.

Got error message box: "An error occurred".

Tags: vnc
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in vinagre (Ubuntu):
status: New → Confirmed
Revision history for this message
JZ (jzhuge) wrote :

There seems to be a bug in 3.4.2:

vinagre-utils.c

void vinagre_utils_show_error_dialog (const gchar* title, const gchar* message, GtkWindow* parent) {
 Block1Data* _data1_;
 const gchar* _tmp0_;
 GtkWindow* _tmp2_;
 const gchar* _tmp3_;
 GtkMessageDialog* _tmp4_;
 GtkMessageDialog* _tmp5_;
 const gchar* _tmp6_;
 GtkMessageDialog* _tmp9_;
 GtkMessageDialog* _tmp10_;
 _data1_ = g_slice_new0 (Block1Data);
 _data1_->_ref_count_ = 1;
 _tmp0_ = title;
 if (_tmp0_ != NULL) { <<<<<<==========
  const gchar* _tmp1_ = NULL;
  _tmp1_ = _ ("An error occurred");
  title = _tmp1_;
 }
 _tmp2_ = parent;
 _tmp3_ = title;
...

Should the if condition be "==" instead of "!="?
   if (_tmp0_ == NULL) {

Revision history for this message
JZ (jzhuge) wrote :

After a gdb session, it turns out all keywords in .vnc file must be capitalized!

And function vinagre_connection_new_from_file() doesn't show the error message.

Revision history for this message
Gabriel Marques (gabriel-agm+lauchpad) wrote :

My working sample:

[Connection]
Host=12.34.56.78
Port=5900
Password=toughone
[Options]
Restricted=0
Viewonly=0
Nostatus=0
Nohotkeys=0
Showtoolbar=1
AutoScaling=0
Fullscreen=0
AutoDetect=1
8bit=0
Shared=0
SwapMouse=0
Belldeiconify=0
Emulate3=1
Emulate3timeout=100
Emulate3fuzz=4
Disableclipboard=0
Localcursor=1
Scaling=0
Scale_num=1
Scale_den=1
Cursorshape=1
Noremotecursor=0
Compresslevel=6
Quality=6
ServerScale=1
EnableCache=0
QuickOption=1
UseDSMPlugin=0
UseProxy=0
DSMPlugin=

Revision history for this message
Roger Binns (ubuntu-rogerbinns) wrote :

Even after capitalization and using the config above I still get the error.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.