Testing Unity Session in 19.04

I did read that you have to make nemo-desktop part of the startup applications

Yes this is my scripts

#!/bin/bash
sleep 10 &&
exec nemo-desktop
exit 0
make executable
then you create another scripts that I saw with @mc3man.
this to change desktop image
#!/bin/bash
unity-control-center appearance

Put in .local/share/nemo/scripts & make executable…

@khurshid-alam

There is some lack of entries in Filter results > Categories. Should Office be shown here as a Category? I can’t remember, if it was there in 17.04 or before, though.

Office was never a category for home lens, I am removing few deprecated online scopes and lenses. Gnote will replace tomboy. And there will be new contacts, calendar, ssh & keyring scopes. Due to lack of zeitgeist patch from new nautilus files and folder search will suffer, but I will put a patched version of nautilus in the ppa later.

About Office, I was not sure, so I asked. Is the new ppa ready or should wait a while? Atm, the folder search is bad even in the default Ubuntu. Nautilus just gets stuck, if you search, and won’t open the folder.

if you’re interested in setting the wallpaper on Nemo without going through Unity Control Center, just add this script:

#!/bin/bash
fn=$1
pwd=`pwd`
picture="$pwd/$fn"

gsettings set org.gnome.desktop.background picture-uri "\"file://$picture\""

Just wish I could figure out how to enable that script only for image files.

Edit: Figured it out…kinda. Best I can make it do is open Unity Control Center if the extension isn’t valid

#!/bin/bash

img_in_arr() {
	local img_ext_arr=("jpg","png")
	local img_ext=$1
	local state=1
	for i in "${img_ext_arr[@]}"; do
		if [[ $img_ext == $i ]]; then
			state=0
			break
		fi
	done
	return $state
}

fn=$1
ext=`echo $fn | rev | cut -f1 -d"." -s | rev`
if  [ -z "$ext" ]; then
	state=1
else
	state=img_in_arr $ext
fi

if [[ $state -eq 1 ]]; then
	unity-control-center appearance
else
	pwd=`pwd`
	picture="$pwd/$fn"

	gsettings set org.gnome.desktop.background picture-uri "\"file://$picture\""
fi

Just gonna fix it to make sure that it works with an uppercase extensions as well.

2 Likes

Thanks, pal! @YamiYukiSenpai
It worked.

Put your script in /.local/share/nemo/actions. Made it executable. Created a nemo action in that folder. Appearance.nemo_action

And, in Ubuntu (default) too!
Background.nemo_action

And, in Ubuntu Budgie too. @fossfreedom

1 Like

Here, the Categories had come back somehow. Please check.

These categories are quite all right, really!.

From a packaging point of view a debian package cannot add anything to a local user folder such as .local/share/nemo/actions

So any configuration that has been played with throughout this thread must be done at a global system level.

I said home lens. You are in application lens.

This can be added to /usr/share/nemo/actions

That’s what I was referring to here. Once, it was not there, then it has come back. No idea why.

Did you manage to get dropbox integrated with Nemo? Kind of think it is a must have for a large number of peoples workflow.

For nemo actions it seems some ex. were deficient , i.e missing required fields.
So for that requested one on desktop background this should work
(- in .local/share/nemo/actions file named
appearance.nemo_action

[Nemo Action]
Name=Appearance
Comment=Open Appearance menu
Exec=unity-control-center appearance
Extensions=None
Selection=None
Conditions=desktop;

There is a nemo-autostart.desktop installed though it’s slightly flawed (needs a second or 2 delay) and is installed to /usr/share/applications where it does no good.
A ppa build could take care of this by altering the autostart.desktop(.in) file slightly & getting it or a symlink installed to /etc/xdg/autostart.

You could use your script or simply use this in .config/autostart or /etc/xdg/autostart

[Desktop Entry]
Type=Application
Name=Nemo
Comment=Start Nemo desktop at log in
Exec=nemo-desktop
AutostartCondition=GSettings org.nemo.desktop show-desktop-icons
X-GNOME-AutoRestart=true
X-GNOME-Autostart-Delay=2
NoDisplay=false

1 Like

Shouldn’t NoDisplay be set to true?

Not really. Gives option to disable nemo handling the desktop via ‘startup applications’ if desired.

For me the biggest issue with nemo in a unity session is the busy cursor when using one of the quicklist items
(the default nemo.desktop has a pitiful desktop actions list but still… certainly more apparent if creating a better nemo.desktop
Can be ‘fixed’ in compiz but don’t see that happening officially

Never used Dropbox. I use OneDrive sometimes, in both Linux and Windows, never for important files. I connect through a web browser in Linux.

What is the fix, and how to do that unofficially in compiz?

Merry Christmas everyone!!!

5 Likes