[Solved] What is a MURSKY.desktop?

Discuss various technical topics not related to Mozilla.
LeeU
Posts: 71
Joined: January 30th, 2004, 2:25 pm

[Solved] What is a MURSKY.desktop?

Post by LeeU »

I was setting up some default .desktop files and happened to come across one titled, "userapp-Firefox-MURSKY.desktop"], which contained the following:

Code: Select all

[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
NoDisplay=true
Exec=/usr/bin/x-www-browser %u
Name=Firefox
Comment=Custom definition for Firefox
The file x-www-browser has a note in the beginning:
Firefox launcher containing a Profile migration helper for temporary profiles used during alpha and beta phases.
Does anyone have any idea where this came from?

I am running Ubuntu Gnome 14.04
Last edited by LeeU on August 23rd, 2016, 10:17 am, edited 1 time in total.
User avatar
JayhawksRock
Posts: 10433
Joined: October 24th, 2010, 8:51 am

Re: What is a MURSKY.desktop?

Post by JayhawksRock »

Does anyone have any idea where this came from?
I am running Ubuntu Gnome 14.04
http://unix.stackexchange.com/questions ... ky-desktop
"The trouble with quotes on the internet is you never know if they are genuine" ...Abraham Lincoln
barbaz
Posts: 1504
Joined: October 1st, 2014, 3:25 pm

Re: What is a MURSKY.desktop?

Post by barbaz »

What is the full path to that .desktop file?

If it was installed as part of a .deb, running this command in a terminal should tell you:

Code: Select all

dpkg-query -S /full/path/to/userapp-Firefox-MURSKY.desktop
LeeU
Posts: 71
Joined: January 30th, 2004, 2:25 pm

Re: What is a MURSKY.desktop?

Post by LeeU »

Yes, I posted that. If you read it you'll see this is where I was heading.

It's located at /home/lee/.local/share/applications and it's owned by root.

When I run the dpkg-query command you gave, I get a message that no path can be found matching that pattern.
barbaz
Posts: 1504
Joined: October 1st, 2014, 3:25 pm

Re: What is a MURSKY.desktop?

Post by barbaz »

What about this command?

Code: Select all

locate -i mursky
Also check the last modified date of the desktop file. Do you remember doing anything specific with sudo at the time?
User avatar
Grumpus
Posts: 13246
Joined: October 19th, 2007, 4:23 am
Location: ... Da' Swamp

Re: What is a MURSKY.desktop?

Post by Grumpus »

I checked the Ubuntu path on this systems and it didn't show the Mursky.desktop but that is where desktops go if they are relative to software you use like open office, a file manager like nautilus or caja in Mint. It could be since you run the Gnome setup instead of Unity it's the alternative answer to the Unity desktop.
Doesn't matter what you say, it's wrong for a toaster to walk around the house and talk to you
LeeU
Posts: 71
Joined: January 30th, 2004, 2:25 pm

Re: What is a MURSKY.desktop?

Post by LeeU »

barbaz wrote:What about this command?

Code: Select all

locate -i mursky

Code: Select all

/home/lee/.local/share/applications/userapp-Firefox-MURSKY.desktop
Also check the last modified date of the desktop file. Do you remember doing anything specific with sudo at the time?
I reinstalled the system on 08-18-2016, but the file is dated 07-15-2016 (I have a separate /home partition).

If it helps, this is what the x-www-browser contains:

Code: Select all

#!/bin/sh

set -e

# Firefox launcher containing a Profile migration helper for
# temporary profiles used during alpha and beta phases.

# Authors:
#  Alexander Sack <asac@jwsdot.com>
#  Fabien Tassin <fta@sofaraway.org>
#  Steve Langasek <steve.langasek@canonical.com>
#  Chris Coulson <chris.coulson@canonical.com>
# License: GPLv2 or later

MOZ_LIBDIR=/usr/lib/firefox
MOZ_APP_LAUNCHER=`which $0`
MOZ_APP_NAME=firefox

export MOZ_APP_LAUNCHER

while [ ! -x $MOZ_LIBDIR/$MOZ_APP_NAME ] ; do
    if [ -L "$MOZ_APP_LAUNCHER" ] ; then
        MOZ_APP_LAUNCHER=`readlink -f $MOZ_APP_LAUNCHER`
        MOZ_LIBDIR=`dirname $MOZ_APP_LAUNCHER`
    else
        echo "Can't find $MOZ_LIBDIR/$MOZ_APP_NAME"
        exit 1
    fi
done

usage () {
    $MOZ_LIBDIR/$MOZ_APP_NAME -h | sed -e 's,/.*/,,'
    echo
    echo "      -g or --debug          Start within debugger"
    echo "      -d or --debugger       Specify debugger to start with (eg, gdb or valgrind)"
    echo "      -a or --debugger-args  Specify arguments for debugger"
}

moz_debug=0
moz_debugger_args=""
moz_debugger="gdb"

while [ $# -gt 0 ]; do
    case "$1" in
        -h | --help )
            usage
            exit 0
            ;;
        -g | --debug )
            moz_debug=1
            shift
            ;;
        -d | --debugger)
            moz_debugger=$2;
            if [ "${moz_debugger}" != "" ]; then
	      shift 2
            else
              echo "-d requires an argument"
              exit 1
            fi
            ;;
        -a | --debugger-args )
            moz_debugger_args=$2;
            if [ "${moz_debugger_args}" != "" ] ; then
                shift 2
            else
                echo "-a requires an argument"
                exit 1
            fi
            ;;
        -- ) # Stop option processing
            shift
            break
            ;;
        * )
            break
            ;;
    esac
done

if [ $moz_debug -eq 1 ] ; then
    case $moz_debugger in
        memcheck)
            debugger="valgrind"
            ;;
        *)
            debugger=$moz_debugger
            ;;
    esac

    debugger=`which $debugger`
    if [ ! -x $debugger ] ; then
        echo "Invalid debugger"
        exit 1
    fi

    case `basename $moz_debugger` in
        gdb)
            exec $debugger $moz_debugger_args --args $MOZ_LIBDIR/$MOZ_APP_NAME "$@"
            ;;
        memcheck)
            echo "$MOZ_APP_NAME has not been compiled with valgrind support"
            exit 1
            ;;
        *)
            exec $debugger $moz_debugger_args $MOZ_LIBDIR/$MOZ_APP_NAME "$@"
            ;;
    esac
else
    exec $MOZ_LIBDIR/$MOZ_APP_NAME "$@"
fi
Looks like it might have been for testing but why would it be in a regular distribution?
barbaz
Posts: 1504
Joined: October 1st, 2014, 3:25 pm

Re: What is a MURSKY.desktop?

Post by barbaz »

:-k That's odd that nothing else on your system is named like that...

Maybe I wasn't clear why I asked about sudo. The only way you would have a root-owned file in your home directory that you didn't deliberately and knowingly put there and set that way is if something you ran using sudo created it. If you run

Code: Select all

sudo env
you will see why, look at the value of HOME it prints. (No we do *not* need to see the output it gives.)

So, again, do you remember doing anything specific with sudo on 15 July, or do you have logs from around then that would list successful sudo attempts?
Or (although this is less likely) did you use sudo to run a software's installation script where the software release date would have been around that time?

If none of the above, I'd have to wonder if the system reinstall zapped whatever put that there?
LeeU
Posts: 71
Joined: January 30th, 2004, 2:25 pm

Re: What is a MURSKY.desktop?

Post by LeeU »

I couldn't say for sure if I did anything with sudo on that day. I had been setting up my system from the first install and I do use sudo for regular things too. I didn't install anything unusual, that wasn't listed in the Synaptic Package Manager. Since the one file says the profile is used during alpha and beta phases, it must have been from testing. But, as I said, it's strange it's in a release.
barbaz
Posts: 1504
Joined: October 1st, 2014, 3:25 pm

Re: What is a MURSKY.desktop?

Post by barbaz »

From https://specifications.freedesktop.org/ ... nized-keys the NoDisplay key means that this .desktop file probably exists only to be associated with MIME types.
Is this .desktop file mentioned in your ~/.local/share/applications/mimeapps.list?
Do you have on your system a way to view all MIME associations by .desktop file?

The shell script that x-www-browser is linked to is unlikely to be related, isn't that script part of the distribution build of Firefox (the Firefox build available through your package manager)? idk for sure, I only use official Mozilla builds of Firefox.
LeeU
Posts: 71
Joined: January 30th, 2004, 2:25 pm

Re: What is a MURSKY.desktop?

Post by LeeU »

barbaz wrote:Is this .desktop file mentioned in your ~/.local/share/applications/mimeapps.list?
Yes:

Code: Select all

[Added Associations]
x-scheme-handler/mailto=claws-mail.desktop;
# x-scheme-handler/http=userapp-Firefox-MURSKY.desktop;firefox.desktop;
# x-scheme-handler/https=userapp-Firefox-MURSKY.desktop;firefox.desktop;
# x-scheme-handler/ftp=userapp-Firefox-MURSKY.desktop;firefox.desktop;
# x-scheme-handler/chrome=userapp-Firefox-MURSKY.desktop;firefox.desktop;
# text/html=userapp-Firefox-MURSKY.desktop;firefox.desktop;
# application/x-extension-htm=userapp-Firefox-MURSKY.desktop;firefox.desktop;
# application/x-extension-html=userapp-Firefox-MURSKY.desktop;firefox.desktop;
# application/x-extension-shtml=userapp-Firefox-MURSKY.desktop;firefox.desktop;
# application/xhtml+xml=userapp-Firefox-MURSKY.desktop;firefox.desktop;
# application/x-extension-xhtml=userapp-Firefox-MURSKY.desktop;firefox.desktop;
# application/x-extension-xht=userapp-Firefox-MURSKY.desktop;firefox.desktop;
Interestingly,though, the mimeapps.list in ~/.local/share/applications/ is dated 08-21-2016; but there is another mimeapps.list located in ~/.config/ which is dated 06-30-2016, which only has the following (aside from the default list):

Code: Select all

[Added Associations]
x-scheme-handler/http=firefox.desktop;
x-scheme-handler/https=firefox.desktop;
x-scheme-handler/ftp=firefox.desktop;
x-scheme-handler/chrome=firefox.desktop;
text/html=firefox.desktop;
application/x-extension-htm=firefox.desktop;
application/x-extension-html=firefox.desktop;
application/x-extension-shtml=firefox.desktop;
application/xhtml+xml=firefox.desktop;
application/x-extension-xhtml=firefox.desktop;
application/x-extension-xht=firefox.desktop;
I don't know of any way to view all MIME associations by .desktop file.

I am using the version of Firefox (v48) that came with the Ubuntu install.
barbaz
Posts: 1504
Joined: October 1st, 2014, 3:25 pm

Re: What is a MURSKY.desktop?

Post by barbaz »

Appears that whatever it was, had just added the MURSKY desktop file to your existing mimeapps.list entries for firefox.desktop. Should be safe enough to revert it now that you've clean-installed your system, right?
(Backup the mimeapps.list files and the MURSKY.desktop file first.)

On a possibly-related note, mimeapps.list is located in ~/.config for Ubuntu 16.04 but ~/.local/share/applications for 14.04, so it looks like you used that /home partition with a 16.04 system at one point?..
LeeU
Posts: 71
Joined: January 30th, 2004, 2:25 pm

Re: What is a MURSKY.desktop?

Post by LeeU »

Yes, I had installed 16.04 but had too many problems.

So I'll delete the file in ~/.config. and b/u the other files, edit the mimeapps.list and delete the MURSKY file.

Thanks. I appreciate the help. (Would be interesting to know the history of that file, though. Oh well....)

(Not sure how to mark it 'solved')
barbaz
Posts: 1504
Joined: October 1st, 2014, 3:25 pm

Re: What is a MURSKY.desktop?

Post by barbaz »

LeeU wrote:Thanks. I appreciate the help.
You're welcome! :D
LeeU wrote:(Would be interesting to know the history of that file, though. Oh well....)
If you see it again, and if it has a recent enough modified date, maybe reading through the last lines of your ~/.bash_history file (or equivalent if not using bash) in case something rings a bell, this likely spawned as a result of something done through a terminal.
LeeU wrote:(Not sure how to mark it 'solved')
Just edit the subject line in your original post to prepend "[Solved]".
rsx11m
Moderator
Posts: 14404
Joined: May 3rd, 2007, 7:40 am
Location: US

Re: What is a MURSKY.desktop?

Post by rsx11m »

Operating system issue, moving to MozillaZine Tech.
Post Reply