Why are StartupWMClass changes not permanent? The 2019 Stack Overflow Developer Survey Results Are InSet Multiple values for StartupWMClass (to group under same launcher in Unity)What represent the StartupWMClass field of a .desktop file?Stencyl.Desktop not workingWhy are there redundant directories for .desktop files?Mouse works but clicks are not registeredHow to launch my own compiled app in Ubuntu 18.04Why are some .desktop files prefixed with “org.kde.” or “org.gnome.”?How do you get a *.desktop file to work for a non-repository app?.desktop suffix vanishesSimple Bash Script To Set All Launchers (*.desktop) To Executable Doesn't Work

Can a rogue use sneak attack with weapons that have the thrown property even if they are not thrown?

Is an up-to-date browser secure on an out-of-date OS?

Geography at the pixel level

Is it ok to offer lower paid work as a trial period before negotiating for a full-time job?

If I score a critical hit on an 18 or higher, what are my chances of getting a critical hit if I roll 3d20?

Button changing its text & action. Good or terrible?

The phrase "to the numbers born"?

What is this business jet?

For what reasons would an animal species NOT cross a *horizontal* land bridge?

Slides for 30 min~1 hr Skype tenure track application interview

writing variables above the numbers in tikz picture

Can we generate random numbers using irrational numbers like π and e?

How to display lines in a file like ls displays files in a directory?

Keeping a retro style to sci-fi spaceships?

Why does the nucleus not repel itself?

Why are there uneven bright areas in this photo of black hole?

Straighten subgroup lattice

Output the Arecibo Message

Why “相同意思的词” is called “同义词” instead of "同意词"?

Accepted by European university, rejected by all American ones I applied to? Possible reasons?

Is it correct to say the Neural Networks are an alternative way of performing Maximum Likelihood Estimation? if not, why?

How to support a colleague who finds meetings extremely tiring?

Correct punctuation for showing a character's confusion

Mathematics of imaging the black hole



Why are StartupWMClass changes not permanent?



The 2019 Stack Overflow Developer Survey Results Are InSet Multiple values for StartupWMClass (to group under same launcher in Unity)What represent the StartupWMClass field of a .desktop file?Stencyl.Desktop not workingWhy are there redundant directories for .desktop files?Mouse works but clicks are not registeredHow to launch my own compiled app in Ubuntu 18.04Why are some .desktop files prefixed with “org.kde.” or “org.gnome.”?How do you get a *.desktop file to work for a non-repository app?.desktop suffix vanishesSimple Bash Script To Set All Launchers (*.desktop) To Executable Doesn't Work



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I am working on Ubuntu 18.04 and trying to associate an application with its shortcut, so it does not launch on a new icon. The .desktop file is in .local/share/applications/ and not in /usr/share/applications.



When I edit this file and add the StartupWMClass attribute it works fine. But the changes do not stick. Every time I open the .desktop file the changes are gone and the application launches on a new icon again. How can I make these changes permanent?



Below is the file:



[Desktop Entry]
Name=Shift
Icon=/home/<username>/.local/share/icons/hicolor/1024x1024/apps/shift.png
Version=3.5.0
GenericName=Shift
X-GNOME-FullName=Shift
Comment=Shift
Encoding=UTF-8
Type=Application
Terminal=false
Exec=/opt/shift/resources/../Shift -mailto %u
StartupWMClass=Shift
Categories=Network;
MimeType=x-scheme-handler/mailto;


The result of xprop WM_CLASS command is: WM_CLASS(STRING) = "shift", "Shift"










share|improve this question







New contributor




Dimitris Poulopoulos is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • Is Exec=/opt/shift/resources/../Shift -mailto %u exactly what you have?

    – DK Bose
    2 days ago











  • @DKBose yes. This is exactly as it is in the .desktop file.

    – Dimitris Poulopoulos
    2 days ago

















0















I am working on Ubuntu 18.04 and trying to associate an application with its shortcut, so it does not launch on a new icon. The .desktop file is in .local/share/applications/ and not in /usr/share/applications.



When I edit this file and add the StartupWMClass attribute it works fine. But the changes do not stick. Every time I open the .desktop file the changes are gone and the application launches on a new icon again. How can I make these changes permanent?



Below is the file:



[Desktop Entry]
Name=Shift
Icon=/home/<username>/.local/share/icons/hicolor/1024x1024/apps/shift.png
Version=3.5.0
GenericName=Shift
X-GNOME-FullName=Shift
Comment=Shift
Encoding=UTF-8
Type=Application
Terminal=false
Exec=/opt/shift/resources/../Shift -mailto %u
StartupWMClass=Shift
Categories=Network;
MimeType=x-scheme-handler/mailto;


The result of xprop WM_CLASS command is: WM_CLASS(STRING) = "shift", "Shift"










share|improve this question







New contributor




Dimitris Poulopoulos is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • Is Exec=/opt/shift/resources/../Shift -mailto %u exactly what you have?

    – DK Bose
    2 days ago











  • @DKBose yes. This is exactly as it is in the .desktop file.

    – Dimitris Poulopoulos
    2 days ago













0












0








0


1






I am working on Ubuntu 18.04 and trying to associate an application with its shortcut, so it does not launch on a new icon. The .desktop file is in .local/share/applications/ and not in /usr/share/applications.



When I edit this file and add the StartupWMClass attribute it works fine. But the changes do not stick. Every time I open the .desktop file the changes are gone and the application launches on a new icon again. How can I make these changes permanent?



Below is the file:



[Desktop Entry]
Name=Shift
Icon=/home/<username>/.local/share/icons/hicolor/1024x1024/apps/shift.png
Version=3.5.0
GenericName=Shift
X-GNOME-FullName=Shift
Comment=Shift
Encoding=UTF-8
Type=Application
Terminal=false
Exec=/opt/shift/resources/../Shift -mailto %u
StartupWMClass=Shift
Categories=Network;
MimeType=x-scheme-handler/mailto;


The result of xprop WM_CLASS command is: WM_CLASS(STRING) = "shift", "Shift"










share|improve this question







New contributor




Dimitris Poulopoulos is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












I am working on Ubuntu 18.04 and trying to associate an application with its shortcut, so it does not launch on a new icon. The .desktop file is in .local/share/applications/ and not in /usr/share/applications.



When I edit this file and add the StartupWMClass attribute it works fine. But the changes do not stick. Every time I open the .desktop file the changes are gone and the application launches on a new icon again. How can I make these changes permanent?



Below is the file:



[Desktop Entry]
Name=Shift
Icon=/home/<username>/.local/share/icons/hicolor/1024x1024/apps/shift.png
Version=3.5.0
GenericName=Shift
X-GNOME-FullName=Shift
Comment=Shift
Encoding=UTF-8
Type=Application
Terminal=false
Exec=/opt/shift/resources/../Shift -mailto %u
StartupWMClass=Shift
Categories=Network;
MimeType=x-scheme-handler/mailto;


The result of xprop WM_CLASS command is: WM_CLASS(STRING) = "shift", "Shift"







.desktop gnome-dash






share|improve this question







New contributor




Dimitris Poulopoulos is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question







New contributor




Dimitris Poulopoulos is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question






New contributor




Dimitris Poulopoulos is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 2 days ago









Dimitris PoulopoulosDimitris Poulopoulos

11




11




New contributor




Dimitris Poulopoulos is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Dimitris Poulopoulos is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Dimitris Poulopoulos is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












  • Is Exec=/opt/shift/resources/../Shift -mailto %u exactly what you have?

    – DK Bose
    2 days ago











  • @DKBose yes. This is exactly as it is in the .desktop file.

    – Dimitris Poulopoulos
    2 days ago

















  • Is Exec=/opt/shift/resources/../Shift -mailto %u exactly what you have?

    – DK Bose
    2 days ago











  • @DKBose yes. This is exactly as it is in the .desktop file.

    – Dimitris Poulopoulos
    2 days ago
















Is Exec=/opt/shift/resources/../Shift -mailto %u exactly what you have?

– DK Bose
2 days ago





Is Exec=/opt/shift/resources/../Shift -mailto %u exactly what you have?

– DK Bose
2 days ago













@DKBose yes. This is exactly as it is in the .desktop file.

– Dimitris Poulopoulos
2 days ago





@DKBose yes. This is exactly as it is in the .desktop file.

– Dimitris Poulopoulos
2 days ago










0






active

oldest

votes












Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);






Dimitris Poulopoulos is a new contributor. Be nice, and check out our Code of Conduct.









draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1132423%2fwhy-are-startupwmclass-changes-not-permanent%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes








Dimitris Poulopoulos is a new contributor. Be nice, and check out our Code of Conduct.









draft saved

draft discarded


















Dimitris Poulopoulos is a new contributor. Be nice, and check out our Code of Conduct.












Dimitris Poulopoulos is a new contributor. Be nice, and check out our Code of Conduct.











Dimitris Poulopoulos is a new contributor. Be nice, and check out our Code of Conduct.














Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1132423%2fwhy-are-startupwmclass-changes-not-permanent%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Distance measures on a map of a game The 2019 Stack Overflow Developer Survey Results Are Inmin distance in a graphShortest distance path on contour plotHow to plot a tilted map?Finding points outside of a diskDelaunay link distanceAnnulus from GeoDisks: drawing a ring on a mapNegative Correlation DistanceFind distance along a path (GPS coordinates)Finding position at given distance in a GeoPathMathematics behind distance estimation using camera

How to get a smooth, uniform ParametricPlot of a 2D Region?How to plot a complicated Region?How to exclude a region from ParametricPlotHow discretize a region placing vertices on a specific non-uniform gridHow to transform a Plot or a ParametricPlot into a RegionHow can I get a smooth plot of a bounded region?Smooth ParametricPlot3D with RegionFunction?Smooth border of a region ParametricPlotSmooth region boundarySmooth region plot from list of pointsGet minimum y of a certain x in a region

Genealogie vun de Merowenger Vum Merowech bis zum Chilperich I. | Navigatiounsmenü