Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a new launcher is broken #8275

Closed
ocafebabe opened this issue Jan 8, 2019 · 16 comments
Closed

Create a new launcher is broken #8275

ocafebabe opened this issue Jan 8, 2019 · 16 comments

Comments

@ocafebabe
Copy link

 * 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:

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
@bitstrings
Copy link

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

@ocafebabe
Copy link
Author

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!

@luke2136
Copy link

luke2136 commented Jan 9, 2019

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.

@Niel0
Copy link

Niel0 commented Jan 9, 2019

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.

@tonywhelan
Copy link

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

@garypigott39
Copy link

Same here

@phamtrongthang123
Copy link

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

@smurphos
Copy link
Contributor

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

@Mario156090
Copy link

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.

@Wikinaut
Copy link

I confirm, that the patch fixes the issue.

@leoperria
Copy link

It worked for me as well ! thanks

@ghost
Copy link

ghost commented Mar 5, 2019

Thanks much smurphos, it Now works fine.

@imchao9
Copy link

imchao9 commented Mar 19, 2019

It work for me, thx!

clefebvre pushed a commit that referenced this issue Mar 21, 2019
The 'nemo-launcher' mode of the desktop editor doesn't use an original
file location, only a destination.

Fixes #8275
@amarilis
Copy link

It worked for me as well ! thanks

@smurphos
Copy link
Contributor

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

@oldgranola
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests