Cinnamon: Create a new launcher is broken

Created on 9 Jan 2019  路  16Comments  路  Source: linuxmint/cinnamon

 * Cinnamon version - 4.0.9
 * Distribution - Mint 19.1
 * Graphics hardware *and* driver used - N/A
 * 64 bit
 ```

**Issue**

I'm trying to create a new custom launcher but nothing happens!

**Steps to reproduce**

Right-click on the desktop and then click on "Create a new launcher here..."

**Expected behaviour**

Launcher Properties window

**Other information**

A Python stacktrace is generated in the xsession-errors log every 
time I repeat the action:
```python
Traceback (most recent call last):
  File "/usr/share/cinnamon/cinnamon-desktop-editor/cinnamon-desktop-editor.py", line 422, in <module>
    Main()
  File "/usr/share/cinnamon/cinnamon-desktop-editor/cinnamon-desktop-editor.py", line 356, in __init__
    editor = LauncherEditor(self.orig_file, self.nemo_launcher_cb, self.dest_dir)
  File "/usr/share/cinnamon/cinnamon-desktop-editor/cinnamon-desktop-editor.py", line 75, in __init__
    self.check_custom_path()
  File "/usr/share/cinnamon/cinnamon-desktop-editor/cinnamon-desktop-editor.py", line 226, in check_custom_path
    self.item_path = os.path.join(util.getUserItemPath(), os.path.split(self.item_path)[1])
  File "/usr/lib/python3.6/posixpath.py", line 107, in split
    p = os.fspath(p)
TypeError: expected str, bytes or os.PathLike object, not NoneType

Most helpful comment

Until as and when a Cinnamon update is pushed including https://github.com/linuxmint/Cinnamon/commit/c42a03a01e988ad6160187c7697425cd99992f08 you can apply the fix to Cinnamon 4.0.9 by applying the attached patch
cinnamon-desktop-editor-c42a03a.py.patch.zip

In a terminal window....

wget https://github.com/linuxmint/Cinnamon/files/2781704/cinnamon-desktop-editor-c42a03a.py.patch.zip

unzip cinnamon-desktop-editor-c42a03a.py.patch.zip

sudo patch /usr/share/cinnamon/cinnamon-desktop-editor/cinnamon-desktop-editor.py < cinnamon-desktop-editor-c42a03a.py.patch

All 16 comments

Maybe this is related, but "path=" in a desktop file is ignored.

This seems to be a regression bug with 4.0.9 because I tested the same action on a vanilla installation of Mint 19.1 (Cinnamon 4.0.8) and it worked perfectly!

Mint 19.1 same issue...occurred after 4.09 upgrade yesterday Jan. 8
tested on second machine with 4.08 worked fine, then upgraded it to 4.09...and does not work.

Same here, LM 19.1 was working fine with 4.0.8 allowing the creation of desktop launchers, Cinnamon updated to 4.0.9 earlier today (9 January) and I can no longer create a desktop launcher bu right clicking and choosing "create a new launcher here". If I choose an application from the mintmenu and choose "Add to Desktop" then a launcher is created OK.

Same issue here. Fresh install is ok but if upgrading from tara to tessa the 'Create desktop launcher' feature does not work.

Same here

Same too. Fresh install and nothing happens if click on "create a new launcher here"

Until as and when a Cinnamon update is pushed including https://github.com/linuxmint/Cinnamon/commit/c42a03a01e988ad6160187c7697425cd99992f08 you can apply the fix to Cinnamon 4.0.9 by applying the attached patch
cinnamon-desktop-editor-c42a03a.py.patch.zip

In a terminal window....

wget https://github.com/linuxmint/Cinnamon/files/2781704/cinnamon-desktop-editor-c42a03a.py.patch.zip

unzip cinnamon-desktop-editor-c42a03a.py.patch.zip

sudo patch /usr/share/cinnamon/cinnamon-desktop-editor/cinnamon-desktop-editor.py < cinnamon-desktop-editor-c42a03a.py.patch

Until as and when a Cinnamon update is pushed including c42a03a you can apply the fix to Cinnamon 4.0.9 by applying the attached patch
cinnamon-desktop-editor-c42a03a.py.patch.zip

In a terminal window....

wget https://github.com/linuxmint/Cinnamon/files/2781704/cinnamon-desktop-editor-c42a03a.py.patch.zip

unzip cinnamon-desktop-editor-c42a03a.py.patch.zip

sudo patch /usr/share/cinnamon/cinnamon-desktop-editor/cinnamon-desktop-editor.py < cinnamon-desktop-editor-c42a03a.py.patch

You are a genius, it's work for me.

I confirm, that the patch fixes the issue.

It worked for me as well ! thanks

Thanks much smurphos, it Now works fine.

It work for me, thx!

It worked for me as well ! thanks

The patch/workaround should be obsolete now with Cinnamon 4.0.10 having been released.

I am running Cinnamon 4.0.10 however I still have this problem so its not fixed. BTW, the patch did not work

Was this page helpful?
0 / 5 - 0 ratings