Public bug reported: script as follows in ~/.local.share/nautilus/scripts/open-as- administrator
#!/bin/bash # # this code will determine exactly the path and the type of object, # then it will decide use gedit or nautilus to open it by ROOT permission # # Determine the path if [ -e -n $1 ]; then obj="$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS" else base="`echo $NAUTILUS_SCRIPT_CURRENT_URI | cut -d'/' -f3- | sed 's/%20/ /g'`" obj="$base/${1##*/}" fi # Determine the type and run as ROOT if [ -f "$obj" ]; then gksu gedit "$obj" elif [ -d "$obj" ]; then gksu nautilus "$obj" fi exit 0 ProblemType: Crash DistroRelease: Ubuntu 14.04 Package: nautilus 1:3.10.1-0ubuntu8 ProcVersionSignature: Ubuntu 3.13.0-19.39-generic 3.13.6 Uname: Linux 3.13.0-19-generic i686 ApportVersion: 2.13.3-0ubuntu1 Architecture: i386 Date: Sun Mar 23 16:15:10 2014 ExecutablePath: /usr/bin/nautilus GsettingsChanges: InstallationDate: Installed on 2014-03-23 (0 days ago) InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Alpha i386 (20140323) ProcCmdline: nautilus /home/bill/Downloads ProcEnviron: LANGUAGE=en_ZA:en PATH=(custom, no user) LANG=en_ZA.UTF-8 SHELL=/bin/bash TERM=unknown Signal: 6 SourcePackage: nautilus StacktraceTop: g_assertion_message () from /lib/i386-linux-gnu/libglib-2.0.so.0 g_assertion_message_expr () from /lib/i386-linux-gnu/libglib-2.0.so.0 ?? () ?? () ?? () Title: nautilus crashed with SIGABRT in g_assertion_message() UpgradeStatus: No upgrade log present (probably fresh install) UserGroups: ** Affects: nautilus (Ubuntu) Importance: Undecided Status: New ** Tags: apport-crash i386 need-i386-retrace trusty ** Information type changed from Private to Public -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to nautilus in Ubuntu. https://bugs.launchpad.net/bugs/1296292 Title: nautilus crashed with SIGABRT in g_assertion_message() after adding "open-as-administrator" script. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/1296292/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs